./ciwiki-3.0.4/000775 001750 001750 00000000000 14305561120 015513 5ustar00jpredonnetjpredonnet000000 000000 ./ciwiki-3.0.4/Makefile.am000777 001750 001750 00000000241 14264640037 017562 0ustar00jpredonnetjpredonnet000000 000000 SUBDIRS = src scripts docs EXTRA_DIST = styles.css ciwiki.png ciwiki.conf docs/ciwiki.man snapshot: $(MAKE) dist distdir=$(PACKAGE)-snapshot-`date +"%Y%m%d"` ./ciwiki-3.0.4/configure000775 001750 001750 00000600114 14274673774 017454 0ustar00jpredonnetjpredonnet000000 000000 #! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for ciwiki 3.0.4. # # Report bugs to . # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org and inphilly@gmail.com $0: about your system, including any error possibly output $0: before this message. Then install a modern shell, or $0: manually run the script under such a shell if you do $0: have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='ciwiki' PACKAGE_TARNAME='ciwiki' PACKAGE_VERSION='3.0.4' PACKAGE_STRING='ciwiki 3.0.4' PACKAGE_BUGREPORT='inphilly@gmail.com' PACKAGE_URL='' ac_unique_file="src/util.c" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS GCC_FLAGS LIBOBJS ALLOCA EGREP GREP CPP am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir runstatedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL am__quote' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_dependency_tracking ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -runstatedir | --runstatedir | --runstatedi | --runstated \ | --runstate | --runstat | --runsta | --runst | --runs \ | --run | --ru | --r) ac_prev=runstatedir ;; -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | --run=* | --ru=* | --r=*) runstatedir=$ac_optarg ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures ciwiki 3.0.4 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/ciwiki] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of ciwiki 3.0.4:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF ciwiki configure 3.0.4 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ( $as_echo "## --------------------------------- ## ## Report this to inphilly@gmail.com ## ## --------------------------------- ##" ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_check_type LINENO TYPE VAR INCLUDES # ------------------------------------------- # Tests whether TYPE exists after having included INCLUDES, setting cache # variable VAR accordingly. ac_fn_c_check_type () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof ($2)) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof (($2))) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else eval "$3=yes" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_type # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by ciwiki $as_me 3.0.4, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_headers="$ac_config_headers config.h" am__api_version='1.16' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi if test "$2" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi rm -f conftest.file test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=1;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='ciwiki' VERSION='3.0.4' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # mkdir_p='$(MKDIR_P)' # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar pax cpio none' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 fi fi # Checks for programs. ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } if ${am_cv_prog_cc_c_o+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 $as_echo "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } cat > confinc.mk << 'END' am__doit: @echo this is the am__doit target >confinc.out .PHONY: am__doit END am__include="#" am__quote= # BSD make does it like this. echo '.include "confinc.mk" # ignored' > confmf.BSD # Other make implementations (GNU, Solaris 10, AIX) do it like this. echo 'include confinc.mk # ignored' > confmf.GNU _am_result=no for s in GNU BSD; do { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } case $?:`cat confinc.out 2>/dev/null` in #( '0:this is the am__doit target') : case $s in #( BSD) : am__include='.include' am__quote='"' ;; #( *) : am__include='include' am__quote='' ;; esac ;; #( *) : ;; esac if test "$am__include" != "#"; then _am_result="yes ($s style)" break fi done rm -f confinc.* confmf.* { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 $as_echo "${_am_result}" >&6; } # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi # Checks for libraries. # Checks for header files. ac_header_dirent=no for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } if eval \${$as_ac_Header+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include <$ac_hdr> int main () { if ((DIR *) 0) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$as_ac_Header=yes" else eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$as_ac_Header { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 _ACEOF ac_header_dirent=$ac_hdr; break fi done # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. if test $ac_header_dirent = dirent.h; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 $as_echo_n "checking for library containing opendir... " >&6; } if ${ac_cv_search_opendir+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char opendir (); int main () { return opendir (); ; return 0; } _ACEOF for ac_lib in '' dir; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_opendir=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_opendir+:} false; then : break fi done if ${ac_cv_search_opendir+:} false; then : else ac_cv_search_opendir=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 $as_echo "$ac_cv_search_opendir" >&6; } ac_res=$ac_cv_search_opendir if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 $as_echo_n "checking for library containing opendir... " >&6; } if ${ac_cv_search_opendir+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char opendir (); int main () { return opendir (); ; return 0; } _ACEOF for ac_lib in '' x; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_opendir=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_opendir+:} false; then : break fi done if ${ac_cv_search_opendir+:} false; then : else ac_cv_search_opendir=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 $as_echo "$ac_cv_search_opendir" >&6; } ac_res=$ac_cv_search_opendir if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } if ${ac_cv_header_sys_wait_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #ifndef WEXITSTATUS # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) #endif #ifndef WIFEXITED # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif int main () { int s; wait (&s); s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_sys_wait_h=yes else ac_cv_header_sys_wait_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 $as_echo "$ac_cv_header_sys_wait_h" >&6; } if test $ac_cv_header_sys_wait_h = yes; then $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in arpa/inet.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done # Checks for typedefs, structures, and compiler characteristics. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } if ${ac_cv_c_const+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __cplusplus /* Ultrix mips cc rejects this sort of thing. */ typedef int charset[2]; const charset cs = { 0, 0 }; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this sort of thing. */ char tx; char *t = &tx; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; } bx; struct s *b = &bx; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_const=yes else ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 $as_echo "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then $as_echo "#define const /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } if ${ac_cv_header_time+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { if ((struct tm *) 0) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_time=yes else ac_cv_header_time=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 $as_echo "$ac_cv_header_time" >&6; } if test $ac_cv_header_time = yes; then $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } if ${ac_cv_struct_tm+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { struct tm tm; int *p = &tm.tm_sec; return !p; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_struct_tm=time.h else ac_cv_struct_tm=sys/time.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 $as_echo "$ac_cv_struct_tm" >&6; } if test $ac_cv_struct_tm = sys/time.h; then $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h fi # Checks for library functions. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" if test "x$ac_cv_type_size_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define size_t unsigned int _ACEOF fi # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 $as_echo_n "checking for working alloca.h... " >&6; } if ${ac_cv_working_alloca_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { char *p = (char *) alloca (2 * sizeof (int)); if (p) return 0; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_working_alloca_h=yes else ac_cv_working_alloca_h=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 $as_echo "$ac_cv_working_alloca_h" >&6; } if test $ac_cv_working_alloca_h = yes; then $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 $as_echo_n "checking for alloca... " >&6; } if ${ac_cv_func_alloca_works+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __GNUC__ # define alloca __builtin_alloca #else # ifdef _MSC_VER # include # define alloca _alloca # else # ifdef HAVE_ALLOCA_H # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ void *alloca (size_t); # endif # endif # endif # endif #endif int main () { char *p = (char *) alloca (1); if (p) return 0; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_func_alloca_works=yes else ac_cv_func_alloca_works=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 $as_echo "$ac_cv_func_alloca_works" >&6; } if test $ac_cv_func_alloca_works = yes; then $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h else # The SVR3 libPW and SVR4 libucb both contain incompatible functions # that cause trouble. Some versions do not even contain alloca or # contain a buggy version. If you still want to use their alloca, # use ar to extract alloca.o from them instead of compiling alloca.c. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext $as_echo "#define C_ALLOCA 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } if ${ac_cv_os_cray+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined CRAY && ! defined CRAY2 webecray #else wenotbecray #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "webecray" >/dev/null 2>&1; then : ac_cv_os_cray=yes else ac_cv_os_cray=no fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 $as_echo "$ac_cv_os_cray" >&6; } if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; do as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define CRAY_STACKSEG_END $ac_func _ACEOF break fi done fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 $as_echo_n "checking stack direction for C alloca... " >&6; } if ${ac_cv_c_stack_direction+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_c_stack_direction=0 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int find_stack_direction (int *addr, int depth) { int dir, dummy = 0; if (! addr) addr = &dummy; *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; dir = depth ? find_stack_direction (addr, depth - 1) : 0; return dir + dummy; } int main (int argc, char **argv) { return find_stack_direction (0, argc + !argv + 20) < 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_c_stack_direction=1 else ac_cv_c_stack_direction=-1 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 $as_echo "$ac_cv_c_stack_direction" >&6; } cat >>confdefs.h <<_ACEOF #define STACK_DIRECTION $ac_cv_c_stack_direction _ACEOF fi ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" if test "x$ac_cv_type_pid_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define pid_t int _ACEOF fi for ac_header in vfork.h do : ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" if test "x$ac_cv_header_vfork_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_VFORK_H 1 _ACEOF fi done for ac_func in fork vfork do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done if test "x$ac_cv_func_fork" = xyes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 $as_echo_n "checking for working fork... " >&6; } if ${ac_cv_func_fork_works+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_fork_works=cross else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { /* By Ruediger Kuhlmann. */ return fork () < 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_fork_works=yes else ac_cv_func_fork_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 $as_echo "$ac_cv_func_fork_works" >&6; } else ac_cv_func_fork_works=$ac_cv_func_fork fi if test "x$ac_cv_func_fork_works" = xcross; then case $host in *-*-amigaos* | *-*-msdosdjgpp*) # Override, as these systems have only a dummy fork() stub ac_cv_func_fork_works=no ;; *) ac_cv_func_fork_works=yes ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} fi ac_cv_func_vfork_works=$ac_cv_func_vfork if test "x$ac_cv_func_vfork" = xyes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 $as_echo_n "checking for working vfork... " >&6; } if ${ac_cv_func_vfork_works+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_vfork_works=cross else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Thanks to Paul Eggert for this test. */ $ac_includes_default #include #ifdef HAVE_VFORK_H # include #endif /* On some sparc systems, changes by the child to local and incoming argument registers are propagated back to the parent. The compiler is told about this with #include , but some compilers (e.g. gcc -O) don't grok . Test for this by using a static variable whose address is put into a register that is clobbered by the vfork. */ static void #ifdef __cplusplus sparc_address_test (int arg) # else sparc_address_test (arg) int arg; #endif { static pid_t child; if (!child) { child = vfork (); if (child < 0) { perror ("vfork"); _exit(2); } if (!child) { arg = getpid(); write(-1, "", 0); _exit (arg); } } } int main () { pid_t parent = getpid (); pid_t child; sparc_address_test (0); child = vfork (); if (child == 0) { /* Here is another test for sparc vfork register problems. This test uses lots of local variables, at least as many local variables as main has allocated so far including compiler temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should reuse the register of parent for one of the local variables, since it will think that parent can't possibly be used any more in this routine. Assigning to the local variable will thus munge parent in the parent process. */ pid_t p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); /* Convince the compiler that p..p7 are live; otherwise, it might use the same hardware register for all 8 local variables. */ if (p != p1 || p != p2 || p != p3 || p != p4 || p != p5 || p != p6 || p != p7) _exit(1); /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent from child file descriptors. If the child closes a descriptor before it execs or exits, this munges the parent's descriptor as well. Test for this by closing stdout in the child. */ _exit(close(fileno(stdout)) != 0); } else { int status; struct stat st; while (wait(&status) != child) ; return ( /* Was there some problem with vforking? */ child < 0 /* Did the child fail? (This shouldn't happen.) */ || status /* Did the vfork/compiler bug occur? */ || parent != getpid() /* Did the file descriptor bug occur? */ || fstat(fileno(stdout), &st) != 0 ); } } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_vfork_works=yes else ac_cv_func_vfork_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 $as_echo "$ac_cv_func_vfork_works" >&6; } fi; if test "x$ac_cv_func_fork_works" = xcross; then ac_cv_func_vfork_works=$ac_cv_func_vfork { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} fi if test "x$ac_cv_func_vfork_works" = xyes; then $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h else $as_echo "#define vfork fork" >>confdefs.h fi if test "x$ac_cv_func_fork_works" = xyes; then $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h fi for ac_header in sys/select.h sys/socket.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 $as_echo_n "checking types of arguments for select... " >&6; } if ${ac_cv_func_select_args+:} false; then : $as_echo_n "(cached) " >&6 else for ac_arg234 in 'fd_set *' 'int *' 'void *'; do for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default #ifdef HAVE_SYS_SELECT_H # include #endif #ifdef HAVE_SYS_SOCKET_H # include #endif int main () { extern int select ($ac_arg1, $ac_arg234, $ac_arg234, $ac_arg234, $ac_arg5); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done done done # Provide a safe default value. : "${ac_cv_func_select_args=int,int *,struct timeval *}" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 $as_echo "$ac_cv_func_select_args" >&6; } ac_save_IFS=$IFS; IFS=',' set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` IFS=$ac_save_IFS shift cat >>confdefs.h <<_ACEOF #define SELECT_TYPE_ARG1 $1 _ACEOF cat >>confdefs.h <<_ACEOF #define SELECT_TYPE_ARG234 ($2) _ACEOF cat >>confdefs.h <<_ACEOF #define SELECT_TYPE_ARG5 ($3) _ACEOF rm -f conftest* { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : $as_echo_n "(cached) " >&6 else rm -f conftest.sym conftest.file echo >conftest.file if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then if test "$cross_compiling" = yes; then : ac_cv_func_lstat_dereferences_slashed_symlink=no else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { struct stat sbuf; /* Linux will dereference the symlink and fail, as required by POSIX. That is better in the sense that it means we will not have to compile and use the lstat wrapper. */ return lstat ("conftest.sym/", &sbuf) == 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_lstat_dereferences_slashed_symlink=yes else ac_cv_func_lstat_dereferences_slashed_symlink=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi else # If the `ln -s' command failed, then we probably don't even # have an lstat function. ac_cv_func_lstat_dereferences_slashed_symlink=no fi rm -f conftest.sym conftest.file fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && cat >>confdefs.h <<_ACEOF #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 _ACEOF if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then case " $LIBOBJS " in *" lstat.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 $as_echo_n "checking whether stat accepts an empty string... " >&6; } if ${ac_cv_func_stat_empty_string_bug+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_stat_empty_string_bug=yes else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { struct stat sbuf; return stat ("", &sbuf) == 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_stat_empty_string_bug=no else ac_cv_func_stat_empty_string_bug=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } if test $ac_cv_func_stat_empty_string_bug = yes; then case " $LIBOBJS " in *" stat.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;; esac cat >>confdefs.h <<_ACEOF #define HAVE_STAT_EMPTY_STRING_BUG 1 _ACEOF fi for ac_func in strftime do : ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" if test "x$ac_cv_func_strftime" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRFTIME 1 _ACEOF else # strftime is in -lintl on SCO UNIX. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 $as_echo_n "checking for strftime in -lintl... " >&6; } if ${ac_cv_lib_intl_strftime+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char strftime (); int main () { return strftime (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_intl_strftime=yes else ac_cv_lib_intl_strftime=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 $as_echo "$ac_cv_lib_intl_strftime" >&6; } if test "x$ac_cv_lib_intl_strftime" = xyes; then : $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h LIBS="-lintl $LIBS" fi fi done for ac_func in asprintf inet_ntoa memset mkdir putenv select socket strdup strncasecmp do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done if test "x$GCC" = "xyes"; then GCC_FLAGS="-g -Wall -fno-strict-aliasing" fi ac_config_files="$ac_config_files Makefile src/Makefile scripts/Makefile docs/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 $as_echo_n "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by ciwiki $as_me 3.0.4, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ ciwiki config.status 3.0.4 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. # TODO: see whether this extra hack can be removed once we start # requiring Autoconf 2.70 or later. case $CONFIG_FILES in #( *\'*) : eval set x "$CONFIG_FILES" ;; #( *) : set x $CONFIG_FILES ;; #( *) : ;; esac shift # Used to flag and report bootstrapping failures. am_rc=0 for am_mf do # Strip MF so we end up with the name of the file. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile which includes # dependency-tracking related rules and includes. # Grep'ing the whole file directly is not great: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ || continue am_dirpart=`$as_dirname -- "$am_mf" || $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$am_mf" : 'X\(//\)[^/]' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$am_mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` am_filepart=`$as_basename -- "$am_mf" || $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$am_mf" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` { echo "$as_me:$LINENO: cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles" >&5 (cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } || am_rc=$? done if test $am_rc -ne 0; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "Something went wrong bootstrapping makefile fragments for automatic dependency tracking. Try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking). See \`config.log' for more details" "$LINENO" 5; } fi { am_dirpart=; unset am_dirpart;} { am_filepart=; unset am_filepart;} { am_mf=; unset am_mf;} { am_rc=; unset am_rc;} rm -f conftest-deps.mk } ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi ./ciwiki-3.0.4/styles.css000777 001750 001750 00000003370 11370317700 017562 0ustar00jpredonnetjpredonnet000000 000000 body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 90%; color: #333333; margin: 2px; padding: 2px; } #header { font-size: 90%; background-color: #eef; border: 1px solid #aaa; font-family: Verdana, Arial, Helvetica, sans-serif; padding: 5px; margin-bottom:20px; } #header input { margin:0px; padding: 0; background-color: White; border: 1px solid #aaaaaa; font-size: 90%; } #footer { font-size: 10px; color: #ddd; margin-top:40px; width: 100%; text-align: center; } table.wikitable { background-color: #fff; border: 1px solid #aaa; } table.wikitable td { background-color: #fff; border: 1px solid #aaa; } pre { font-family: monospace; background-color: #eee; padding: 2px; padding-left: 10px; margin-left: 20px; margin-right: 20px; } hr { height: 1px; color: #aaaaaa; background-color: #aaaaaa; border: 0; margin: 0.2em 5px 0.2em 5px; } form { border: none; margin: 0; } textarea { border: 1px solid #aaaaaa; color: Black; background-color: white; width: 100%; padding: 0.1em; overflow: auto; } blockquote { border: 1px dotted; color: Gray; display: inline-block; } input { margin-top:1px; padding: 0 0.4em !important; background-color: White; border: 1px solid #aaaaaa; } a, ulink{ color: #333; text-decoration:none; border-bottom: 1px #333 dotted; display: inline; } a:hover { color: #333; text-decoration: None; border-bottom: 1px #000 solid; } a:visited { color: #333; } #wrapper { text-align:left; margin:0 auto; display: inline-block; min-height:10px; border:1px solid #ccc; padding:5px; } #myvar { border:1px solid #ccc; background:#f2f2f2; padding:5px; } ./ciwiki-3.0.4/depcomp000755 001750 001750 00000056020 14264013246 017076 0ustar00jpredonnetjpredonnet000000 000000 #! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2018-03-07.03; # UTC # Copyright (C) 1999-2018 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by 'PROGRAMS ARGS'. object Object file output by 'PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputting dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac # Get the directory component of the given path, and save it in the # global variables '$dir'. Note that this directory component will # be either empty or ending with a '/' character. This is deliberate. set_dir_from () { case $1 in */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; *) dir=;; esac } # Get the suffix-stripped basename of the given path, and save it the # global variable '$base'. set_base_from () { base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` } # If no dependency file was actually created by the compiler invocation, # we still have to create a dummy depfile, to avoid errors with the # Makefile "include basename.Plo" scheme. make_dummy_depfile () { echo "#dummy" > "$depfile" } # Factor out some common post-processing of the generated depfile. # Requires the auxiliary global variable '$tmpdepfile' to be set. aix_post_process_depfile () { # If the compiler actually managed to produce a dependency file, # post-process it. if test -f "$tmpdepfile"; then # Each line is of the form 'foo.o: dependency.h'. # Do two passes, one to just change these to # $object: dependency.h # and one to simply output # dependency.h: # which is needed to avoid the deleted-header problem. { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" } > "$depfile" rm -f "$tmpdepfile" else make_dummy_depfile fi } # A tabulation character. tab=' ' # A newline character. nl=' ' # Character ranges might be problematic outside the C locale. # These definitions help. upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ lower=abcdefghijklmnopqrstuvwxyz digits=0123456789 alpha=${upper}${lower} if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Avoid interferences from the environment. gccflag= dashmflag= # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvisualcpp fi if test "$depmode" = msvc7msys; then # This is just like msvc7 but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvc7 fi if test "$depmode" = xlc; then # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. gccflag=-qmakedep=gcc,-MF depmode=gcc fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. ## (see the conditional assignment to $gccflag above). ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). Also, it might not be ## supported by the other compilers which use the 'gcc' depmode. ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The second -e expression handles DOS-style file names with drive # letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the "deleted header file" problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. ## Some versions of gcc put a space before the ':'. On the theory ## that the space means something, we add a space to the output as ## well. hp depmode also adds that space, but also prefixes the VPATH ## to the object. Take care to not repeat it in the output. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like '#:fec' to the end of the # dependency line. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ | tr "$nl" ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" ;; xlc) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts '$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done aix_post_process_depfile ;; tcc) # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 # FIXME: That version still under development at the moment of writing. # Make that this statement remains true also for stable, released # versions. # It will wrap lines (doesn't matter whether long or short) with a # trailing '\', as in: # # foo.o : \ # foo.c \ # foo.h \ # # It will put a trailing '\' even on the last line, and will use leading # spaces rather than leading tabs (at least since its commit 0394caf7 # "Emit spaces for -MD"). "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. # We have to change lines of the first kind to '$object: \'. sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" # And for each line of the second kind, we have to emit a 'dep.h:' # dummy dependency, to avoid the deleted-header problem. sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" rm -f "$tmpdepfile" ;; ## The order of this option in the case statement is important, since the ## shell code in configure will try each of these formats in the order ## listed in this file. A plain '-MD' option would be understood by many ## compilers, so we must ensure this comes after the gcc and icc options. pgcc) # Portland's C compiler understands '-MD'. # Will always output deps to 'file.d' where file is the root name of the # source file under compilation, even if file resides in a subdirectory. # The object file name does not affect the name of the '.d' file. # pgcc 10.2 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using '\' : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... set_dir_from "$object" # Use the source, not the object, to determine the base name, since # that's sadly what pgcc will do too. set_base_from "$source" tmpdepfile=$base.d # For projects that build the same source file twice into different object # files, the pgcc approach of using the *source* file root name can cause # problems in parallel builds. Use a locking strategy to avoid stomping on # the same $tmpdepfile. lockdir=$base.d-lock trap " echo '$0: caught signal, cleaning up...' >&2 rmdir '$lockdir' exit 1 " 1 2 13 15 numtries=100 i=$numtries while test $i -gt 0; do # mkdir is a portable test-and-set. if mkdir "$lockdir" 2>/dev/null; then # This process acquired the lock. "$@" -MD stat=$? # Release the lock. rmdir "$lockdir" break else # If the lock is being held by a different process, wait # until the winning process is done or we timeout. while test -d "$lockdir" && test $i -gt 0; do sleep 1 i=`expr $i - 1` done fi i=`expr $i - 1` done trap - 1 2 13 15 if test $i -le 0; then echo "$0: failed to acquire lock after $numtries attempts" >&2 echo "$0: check lockdir '$lockdir'" >&2 exit 1 fi if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" # Add 'dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in 'foo.d' instead, so we check for that too. # Subdirectories are respected. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then # Libtool generates 2 separate objects for the 2 libraries. These # two compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir$base.o.d # libtool 1.5 tmpdepfile2=$dir.libs/$base.o.d # Likewise. tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d "$@" -MD fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done # Same post-processing that is required for AIX mode. aix_post_process_depfile ;; msvc7) if test "$libtool" = yes; then showIncludes=-Wc,-showIncludes else showIncludes=-showIncludes fi "$@" $showIncludes > "$tmpdepfile" stat=$? grep -v '^Note: including file: ' "$tmpdepfile" if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The first sed program below extracts the file names and escapes # backslashes for cygpath. The second sed program outputs the file # name when reading, but also accumulates all include files in the # hold buffer in order to output them again at the end. This only # works with sed implementations that can handle large buffers. sed < "$tmpdepfile" -n ' /^Note: including file: *\(.*\)/ { s//\1/ s/\\/\\\\/g p }' | $cygpath_u | sort -u | sed -n ' s/ /\\ /g s/\(.*\)/'"$tab"'\1 \\/p s/.\(.*\) \\/\1:/ H $ { s/.*/'"$tab"'/ G p }' >> "$depfile" echo >> "$depfile" # make sure the fragment doesn't end with a backslash rm -f "$tmpdepfile" ;; msvc7msys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for ':' # in the target name. This is to cope with DOS-style filenames: # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. "$@" $dashmflag | sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this sed invocation # correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" # makedepend may prepend the VPATH from the source file name to the object. # No need to regex-escape $object, excess matching of '.' is harmless. sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process the last invocation # correctly. Breaking it into two sed invocations is a workaround. sed '1,2d' "$tmpdepfile" \ | tr ' ' "$nl" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E \ | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" echo "$tab" >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: ./ciwiki-3.0.4/LICENSE000777 001750 001750 00000043177 12552725453 016556 0ustar00jpredonnetjpredonnet000000 000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. {description} Copyright (C) {year} {fullname} This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. {signature of Ty Coon}, 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. ./ciwiki-3.0.4/scripts/000775 001750 001750 00000000000 14274674204 017217 5ustar00jpredonnetjpredonnet000000 000000 ./ciwiki-3.0.4/scripts/Makefile.am000777 001750 001750 00000000050 12466215766 021260 0ustar00jpredonnetjpredonnet000000 000000 dist_libexec_SCRIPTS = notifynewuser.sh ./ciwiki-3.0.4/scripts/notifynewuser.sh000777 001750 001750 00000006103 12474367077 022510 0ustar00jpredonnetjpredonnet000000 000000 #!/bin/bash # This simple bash script will send the validation code to the new users # Require ssmtp (relay email to your smtp) # if newwikiusers.txt exists, then it's renamed. # Email, name,pwd and code are extracted and sent with ssmtp # then the result file newusersnotified.txt is updated # if newusermesage.txt exists, it will be read to prepare the email text. # JP Redonnet May 2010 - inphilly@gmail.com # Rev 1.5 - Febuary 22, 2015 # newwikiusers.txt should be in /usr/local/libexec file1=~/newwikiusers.txt # temporary file file2=~/newwikiusers.temp # list of users notified file3=~/newusersnotified.txt # Email message can be customized file4=~/newusermessage.txt # ciwiki port - default port=80 port=80 # default subject and body subject='Your CiWiki Access Code' body='Hello\r\rTo validate your new account; Please click on the direct link below, or in the Wiki, click on login, choose new account, Reenter your username, password, and email, Enter your access code.' thanks='Thank you!' # default internet address internetAddr="" # default body and default thanks flag=0 flag1=0 flag2=0 #wiki address, we need the ip address and the port #we will create a direct link to validate a new registration #get the port addr in the arguments while getopts p:i arg do case $arg in p) port=$OPTARG;; i) internet=1;; esac done #get the internet address, subject, body, thanks if [ -f "$file4" ] then while read line do if [[ "$line" =~ "I:" ]] then internetAddr=${line#*I:} internetAddr=${internetAddr%% *} fi if [[ "$line" =~ "S:" ]] then subject=${line#*S:} fi if [[ "$line" =~ "B:" ]] then if (($flag1 == 0)) then body=${line#*B:} flag1=1 else body=$body'\r'${line#*B:} fi fi if [[ "$line" =~ "T:" ]] then if (($flag2 == 0)) then thanks=${line#*T:} flag2=1 else thanks=$thanks'\r'${line#*T:} fi fi done < $file4 fi #internet address available? if [[ -n $internetAddr ]] then #Create the Internet wiki address wikiAddr=$internetAddr':'$port else #extract the ip address of the server #some ifconfig version (old?) return adr: rather addr: str=`ifconfig | grep -Eo 'inet (addr:|adr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'` #Create the Intranet wiki addresse wikiAddr='http://'${str%% *}':'$port fi #extract the email, login name, password, access code # then send email if [ -f "$file1" ] then mv -f $file1 $file2 while read line do email=${line#*M:} email=${email%% *} usr=${line#*U:} usr=${usr%% *} pwd=${line#*P:} pwd=${pwd%% *} code=${line#*C:} directLink=$wikiAddr'/Login?rac='$email,$code,$usr,$pwd date >> $file3 echo "$line" >> $file3 echo -e "Subject:$subject\r\r \ $body\r\r \ Your username:$usr\r \ Your password:$pwd\r \ Your access code:$code\r \ Direct link : $directLink\r\r \ $thanks\r"|sendmail $email >> $file3 done < $file2 fi exit 0 ./ciwiki-3.0.4/scripts/inetaddress.sh000777 001750 001750 00000000223 12466347744 022071 0ustar00jpredonnetjpredonnet000000 000000 #!/bin/sh str=`ifconfig | grep -Eo 'inet (addr:|adr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'` echo ${str%% *} ./ciwiki-3.0.4/scripts/ciwiki_ressource_usage.sh000775 001750 001750 00000000236 12661710302 024300 0ustar00jpredonnetjpredonnet000000 000000 #!/bin/bash # CPU and Memory usage # JP Redonnet Febuary 19, 2016 - inphilly@gmail.com # Rev 1.0 # watch -n 1 'ps -C ciwiki' -o %cpu,%mem,trs,drs,rss,pid,cmd ./ciwiki-3.0.4/scripts/listnewuser.sh000777 001750 001750 00000001257 11432124222 022130 0ustar00jpredonnetjpredonnet000000 000000 #!/bin/sh # This simple bash script searchs user registrations in newwikiusers.txt # JP Redonnet August 2010 - inphilly@gmail.com # newwikiusers.txt should be in the home dir file1=~/newwikiusers.txt file2=~/newusersnotified.txt echo "Search user registrations in newwikiusers.txt" echo -n "Enter the user name (or all): " read b if [ ! $b ] || [ $b = "all" ] then a=U: else a=U:$b fi if [ -f "$file1" ] then echo "List of users not notified yet:" grep -i $a $file1 echo "------------------------------" fi if [ -f "$file2" ] then echo "List of users alread notified:" grep -i $a $file2 echo "------------------------------" fi echo "Press Enter" read a ./ciwiki-3.0.4/scripts/Makefile.in000664 001750 001750 00000033536 14274674000 021270 0ustar00jpredonnetjpredonnet000000 000000 # Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = scripts ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(dist_libexec_SCRIPTS) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(libexecdir)" SCRIPTS = $(dist_libexec_SCRIPTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GCC_FLAGS = @GCC_FLAGS@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ dist_libexec_SCRIPTS = notifynewuser.sh all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu scripts/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu scripts/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-dist_libexecSCRIPTS: $(dist_libexec_SCRIPTS) @$(NORMAL_INSTALL) @list='$(dist_libexec_SCRIPTS)'; test -n "$(libexecdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(libexecdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libexecdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(libexecdir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(libexecdir)$$dir" || exit $$?; \ } \ ; done uninstall-dist_libexecSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(dist_libexec_SCRIPTS)'; test -n "$(libexecdir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(libexecdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(SCRIPTS) installdirs: for dir in "$(DESTDIR)$(libexecdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-dist_libexecSCRIPTS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-dist_libexecSCRIPTS .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic cscopelist-am \ ctags-am distclean distclean-generic distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dist_libexecSCRIPTS install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-dist_libexecSCRIPTS .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ./ciwiki-3.0.4/scripts/backup_wiki.sh000777 001750 001750 00000000572 12475012126 022042 0ustar00jpredonnetjpredonnet000000 000000 #!/bin/sh # Simple backup - JP Redonnet - inphilly@gmail.com homedir=~ wikidir=.ciwiki bckupdir=~/wikibkup echo "Run in Console - tar.gz all files in $homedir/$wikidir/" cd $homedir if [ -d $bckupdir ] then echo "backup will be in $bckupdir" else echo "$bckupdir is created" mkdir $bckupdir fi bkdate=$(date +%Y%m%d_%H%M) tar -czvf $bckupdir/wiki_$bkdate.tar.gz $wikidir/ ./ciwiki-3.0.4/scripts/inet_addr.sh000777 001750 001750 00000000365 12466350000 021477 0ustar00jpredonnetjpredonnet000000 000000 #!/bin/sh echo "Run in Console - Return your inet address" str=`ifconfig | grep -Eo 'inet (addr:|adr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'` echo your inet address is ${str%% *} echo "Enter to exit" read a ./ciwiki-3.0.4/scripts/activity.sh000777 001750 001750 00000000161 12466414310 021401 0ustar00jpredonnetjpredonnet000000 000000 #!/bin/sh echo "Run in Console - List the Wiki activity" grep Ciwiki /var/log/syslog echo "Enter to exit" read a ./ciwiki-3.0.4/scripts/kill_wiki.sh000777 001750 001750 00000000147 12457502764 021542 0ustar00jpredonnetjpredonnet000000 000000 #!/bin/sh echo "Useful for dev only. kill ciwiki daemon. ctr-c to quit" read a kill -15 `pidof ciwiki` ./ciwiki-3.0.4/scripts/Makefile000664 001750 001750 00000034140 14274674204 020661 0ustar00jpredonnetjpredonnet000000 000000 # Makefile.in generated by automake 1.16.1 from Makefile.am. # scripts/Makefile. Generated from Makefile.in by configure. # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/ciwiki pkgincludedir = $(includedir)/ciwiki pkglibdir = $(libdir)/ciwiki pkglibexecdir = $(libexecdir)/ciwiki am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = scripts ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(dist_libexec_SCRIPTS) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(libexecdir)" SCRIPTS = $(dist_libexec_SCRIPTS) AM_V_P = $(am__v_P_$(V)) am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY)) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_$(V)) am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_$(V)) am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = ${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing aclocal-1.16 ALLOCA = AMTAR = $${TAR-tar} AM_DEFAULT_VERBOSITY = 1 AUTOCONF = ${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing autoconf AUTOHEADER = ${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing autoheader AUTOMAKE = ${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing automake-1.16 AWK = mawk CC = gcc CCDEPMODE = depmode=gcc3 CFLAGS = -g -O2 CPP = gcc -E CPPFLAGS = CYGPATH_W = echo DEFS = -DHAVE_CONFIG_H DEPDIR = .deps ECHO_C = ECHO_N = -n ECHO_T = EGREP = /bin/grep -E EXEEXT = GCC_FLAGS = -g -Wall -fno-strict-aliasing GREP = /bin/grep INSTALL = /usr/bin/install -c INSTALL_DATA = ${INSTALL} -m 644 INSTALL_PROGRAM = ${INSTALL} INSTALL_SCRIPT = ${INSTALL} INSTALL_STRIP_PROGRAM = $(install_sh) -c -s LDFLAGS = LIBOBJS = LIBS = LTLIBOBJS = MAKEINFO = ${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing makeinfo MKDIR_P = /bin/mkdir -p OBJEXT = o PACKAGE = ciwiki PACKAGE_BUGREPORT = inphilly@gmail.com PACKAGE_NAME = ciwiki PACKAGE_STRING = ciwiki 3.0.4 PACKAGE_TARNAME = ciwiki PACKAGE_URL = PACKAGE_VERSION = 3.0.4 PATH_SEPARATOR = : SET_MAKE = SHELL = /bin/bash STRIP = VERSION = 3.0.4 abs_builddir = /home/jpredonnet/ciwiki/ciwiki-3.0.4/scripts abs_srcdir = /home/jpredonnet/ciwiki/ciwiki-3.0.4/scripts abs_top_builddir = /home/jpredonnet/ciwiki/ciwiki-3.0.4 abs_top_srcdir = /home/jpredonnet/ciwiki/ciwiki-3.0.4 ac_ct_CC = gcc am__include = include am__leading_dot = . am__quote = am__tar = $${TAR-tar} chof - "$$tardir" am__untar = $${TAR-tar} xf - bindir = ${exec_prefix}/bin build_alias = builddir = . datadir = ${datarootdir} datarootdir = ${prefix}/share docdir = ${datarootdir}/doc/${PACKAGE_TARNAME} dvidir = ${docdir} exec_prefix = ${prefix} host_alias = htmldir = ${docdir} includedir = ${prefix}/include infodir = ${datarootdir}/info install_sh = ${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/install-sh libdir = ${exec_prefix}/lib libexecdir = ${exec_prefix}/libexec localedir = ${datarootdir}/locale localstatedir = ${prefix}/var mandir = ${datarootdir}/man mkdir_p = $(MKDIR_P) oldincludedir = /usr/include pdfdir = ${docdir} prefix = /usr/local program_transform_name = s,x,x, psdir = ${docdir} runstatedir = ${localstatedir}/run sbindir = ${exec_prefix}/sbin sharedstatedir = ${prefix}/com srcdir = . sysconfdir = ${prefix}/etc target_alias = top_build_prefix = ../ top_builddir = .. top_srcdir = .. dist_libexec_SCRIPTS = notifynewuser.sh all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu scripts/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu scripts/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-dist_libexecSCRIPTS: $(dist_libexec_SCRIPTS) @$(NORMAL_INSTALL) @list='$(dist_libexec_SCRIPTS)'; test -n "$(libexecdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(libexecdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libexecdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(libexecdir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(libexecdir)$$dir" || exit $$?; \ } \ ; done uninstall-dist_libexecSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(dist_libexec_SCRIPTS)'; test -n "$(libexecdir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(libexecdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(SCRIPTS) installdirs: for dir in "$(DESTDIR)$(libexecdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-dist_libexecSCRIPTS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-dist_libexecSCRIPTS .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic cscopelist-am \ ctags-am distclean distclean-generic distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dist_libexecSCRIPTS install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-dist_libexecSCRIPTS .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ./ciwiki-3.0.4/scripts/check_public_ip.sh000777 001750 001750 00000002154 12474420313 022653 0ustar00jpredonnetjpredonnet000000 000000 #!/bin/bash # This little bash script gets your public IP address and checks it. # If the address has changed you will receive an email # you can choose ipecho.net, checkip.dyndns.org and ifconfig.me # Require ssmtp (relay email to your smtp) # JP Redonnet Febuary 28, 2015 - inphilly@gmail.com # Rev 1.0 # email="inphilly@gmail.com" file1=~/myPublicIPAddr.txt #str=`wget -O - http://ipecho.net -q|grep -Eo 'Your IP is ?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*'` #str=`wget -O - http://checkip.dyndns.org -q|grep -Eo 'Current IP Address: ?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*'` str=`wget -O - http://ifconfig.me/ip -q` str=${str%% *} #Check if ip addr has changed if [ -f "$file1" ] then while read line do if [[ "$line" == "$str" ]] then #found! exit 0 fi done < $file1 fi #Address has changed! #Save for the new comparison echo $str>$file1 #Prepare and send the mail echo -e "Subject:Your Public IP address has changed!\r\r\r \ Please update quickly your IP address (dynDSN...). \r\r \ Your new public IP address is http://$str \r\r Thanks\r\r"|sendmail $email exit 0 ./ciwiki-3.0.4/Examples_of_Ciwiki_3_config/000775 001750 001750 00000000000 14274543461 023040 5ustar00jpredonnetjpredonnet000000 000000 ./ciwiki-3.0.4/Examples_of_Ciwiki_3_config/HOWTO.txt000664 001750 001750 00000000741 14267464734 024512 0ustar00jpredonnetjpredonnet000000 000000 To change Ciwiki 3.x.x appearance : - Go to .ciwiki/configuration (hidden folder). - Replace styles.css and html pages with the new ones from configuration_FR or configuration_Mobile_and_Laptop. - configuration_Mobile_and_Laptop uses media queries (@media) to adapt the wiki to the small screen of the mobiles phones. - configuration_FR provides a translation in french of the header, the shorthelp, and uses media queries (@media) to adapt the wiki to the mobiles phones. ./ciwiki-3.0.4/Examples_of_Ciwiki_3_config/configuration_FR/000775 001750 001750 00000000000 14274543461 026276 5ustar00jpredonnetjpredonnet000000 000000 ./ciwiki-3.0.4/Examples_of_Ciwiki_3_config/configuration_FR/LogInForm2.htm000664 001750 001750 00000001530 14264632676 030733 0ustar00jpredonnetjpredonnet000000 000000

Login

New user? Please create a new account.

User name:
Password: Show it:
./ciwiki-3.0.4/Examples_of_Ciwiki_3_config/configuration_FR/styles.css000664 001750 001750 00000007007 14272476705 030343 0ustar00jpredonnetjpredonnet000000 000000 @media only screen and (hover: none) and (pointer: coarse) { body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 22px; color: #333333; margin: 2px; padding: 2px; } #header { font-size: 22px; background-color: #eef; border: 1px solid #aaa; font-family: Verdana, Arial, Helvetica, sans-serif; padding: 5px; margin-bottom:10px; } input { margin-top:1px; padding: 0.2em; background-color: White; border: 1px solid #aaaaaa; font-size: 1.5em; } select { margin-top:1px; padding: 0.2em; background-color: White; border: 1px solid #aaaaaa; font-size: 1.5em; } nav { width: auto; text-align: left; } nav ul { flex-direction: column; } nav li { padding-left: 4px; } nav a { font-size: 1.5em; } } @media (hover: hover) { body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; color: #333333; margin: 2px; padding: 2px; } #header { font-size: 16px; background-color: #eef; border: 1px solid #aaa; font-family: Verdana, Arial, Helvetica, sans-serif; padding: 5px; margin-bottom:10px; } nav ul { list-style-type: none; display: flex; } nav li { margin-right: 15px; } nav a { font-size: 0.9em; color: #181818; padding-bottom: 3px; text-decoration: none; } nav a:hover { color: #760001; border-bottom: 3px solid #760001; } input { margin-top:1px; padding: 0.2em; background-color: White; border: 1px solid #aaaaaa; font-size: 1.0em; } select { margin-top:1px; padding: 0.2em; background-color: White; border: 1px solid #aaaaaa; font-size: 1.0em; } } #header input { margin:0px; padding: 0.1em; background-color: White; border: 1px solid #aaaaaa; font-size: 90%; } #headShHlp{ font-size: 12px; background-color: #eff; border: 1px solid #aaa; font-family: Verdana, Arial, Helvetica, sans-serif; padding: 5px; margin-bottom:10px; } #footer { font-size: 10px; color: #ddd; margin-top:40px; width: 100%; text-align: center; } table.wikitable { background-color: #fff; border: 1px solid #aaa; } table.wikitable td { background-color: #fff; border: 1px solid #aaa; } pre { font-family: monospace; background-color: #eee; padding: 2px; padding-left: 10px; margin-left: 20px; margin-right: 20px; } hr { height: 1px; color: #aaaaaa; background-color: #aaaaaa; border: 0; margin: 0.2em 5px 0.2em 5px; } form { border: none; margin: 0; } textarea { border: 1px solid #aaaaaa; color: Black; background-color: white; width: 99%; padding: 0.1em; overflow: auto; } li { list-style-type: none; display: flex; } a, ulink{ color: #333; text-decoration:none; border-bottom: 1px #333 dotted; display: inline; } a:hover { color: #333; text-decoration: None; border-bottom: 1px #000 solid; } a:visited { color: #333; } #wrapper { text-align:left; margin:0 auto; display: inline-block; min-height:10px; border:1px solid #ccc; padding:5px; } #myvar { border:1px solid #ccc; background:#f2f2f2; padding:5px; } @media all and (max-width: 800px) { nav { width: auto; text-align: left; } nav ul { flex-direction: column; } nav li { padding-left: 4px; } nav a { font-size: 1.2em; } nav a:hover { border-bottom: 0; } } ./ciwiki-3.0.4/Examples_of_Ciwiki_3_config/configuration_FR/LogInForm.htm000664 001750 001750 00000000741 14264632676 030654 0ustar00jpredonnetjpredonnet000000 000000

Login

User name:
Password:

Are you a new user? Please click here to create a new account.

./ciwiki-3.0.4/Examples_of_Ciwiki_3_config/configuration_FR/CreateForm.htm000664 001750 001750 00000000733 14264632676 031050 0ustar00jpredonnetjpredonnet000000 000000
Page name: Select a template:

./ciwiki-3.0.4/Examples_of_Ciwiki_3_config/configuration_FR/EditForm.htm000664 001750 001750 00000001155 14264632676 030531 0ustar00jpredonnetjpredonnet000000 000000

./ciwiki-3.0.4/Examples_of_Ciwiki_3_config/configuration_FR/HomeRedirect.htm000664 001750 001750 00000000221 14264632676 031363 0ustar00jpredonnetjpredonnet000000 000000 ==Redirect yor home page to /html/index.html html=redirect.index.html if you are not automatically redirected, please click on html=index.html ./ciwiki-3.0.4/Examples_of_Ciwiki_3_config/configuration_FR/Messages.txt000664 001750 001750 00000003302 14271733710 030577 0ustar00jpredonnetjpredonnet000000 000000 #Traduction en français par Jean-Pierre Redonnet. MSG01

Permission refusée - Vous devez vous logger.

Return to the previous page. /MSG MSG02 Ce fichier est trop gros! /MSG MSG03 Ce fichier n'est pas autorisé! /MSG MSG04 Votre fichier est chargé. Taille=%ld bytes /MSG MSG05 Code d'accès non valable. /MSG MSG06 Vous pouvez vous logger avec un nouveau mot de passe. /MSG MSG07 Mot de passe trop court. 8 caractères au minimum. /MSG MSG08 Mot de passe avec caractère non-valable. /MSG MSG09 Mot de passe trop long. 24 caractères au maximum. /MSG MSG10 Login refusé: Mauvais mot de passe. /MSG MSG11 Login refusé: Mauvais nom. /MSG MSG12 Erreur interne. Nous en sommes désolé, merci de notifier le problème. /MSG MSG13 Erreur non répertoriée. /MSG MSG14 Vous ne pouvez pas changer votre mot de passe (autologged). /MSG MSG15 Permission refusée /MSG MSG16 Nom ou mot de passe trop court. 8 caractères au minimum. /MSG MSG17 Nom ou mot de passe avec caractère non valable. /MSG MSG18 Nom ou mot de passe trop long. 24 caractères au maximum. /MSG MSG19 Login refusé: Nom ou mot de passe erroné. /MSG MSG20 Login refusé: Trop d'esssai - Recommencez plus tard. /MSG MSG21 Login refusé: Nom ou mot de passe erroné. /MSG MSG22 Le nom existe déjà. Choisisez en un autre. /MSG MSG23 Email non valable. /MSG MSG24 Vous avez besoin d'un code d'accès. Vous le recevrez par courriel. /MSG MSG25 Internal error. We are sorry. Please report the problem. /MSG MSG26 Unknow error. /MSG MSG27 Cette page n'existe pas. Essayez un autre nom. /MSG ./ciwiki-3.0.4/Examples_of_Ciwiki_3_config/configuration_FR/NewLogInForm.htm000664 001750 001750 00000002023 14264632676 031321 0ustar00jpredonnetjpredonnet000000 000000

Create a new Account

Please choose your user name, your password and enter a valid email address.
You will receive your validation code on your email

User name:
Password:
Your Email:
=> A validation code will be returned by mail.
Reenter your User name, pwd, email with your code.
Validation Code:
./ciwiki-3.0.4/Examples_of_Ciwiki_3_config/configuration_FR/EditHeader.htm000664 001750 001750 00000002033 14267455235 031007 0ustar00jpredonnetjpredonnet000000 000000
./ciwiki-3.0.4/Examples_of_Ciwiki_3_config/configuration_FR/LogInfo.htm000664 001750 001750 00000001635 14264633764 030357 0ustar00jpredonnetjpredonnet000000 000000

Login Information

IP Address:%s
Login name:%s

To change your password:
Old password:
New password:
Reenter your password:

Return to the previous page.
./ciwiki-3.0.4/Examples_of_Ciwiki_3_config/configuration_FR/ShortHelp.htm000664 001750 001750 00000000462 14267447350 030724 0ustar00jpredonnetjpredonnet000000 000000
=H1 ==H2 ===H3 | *gras* | /italique/ | _souligné_ | -barré- | +surligne+ | 'quote | [lien] or ChaMeau | ! ignore |* liste | ** sousliste | # numéro | --- | {{toc}} | {{private}}
./ciwiki-3.0.4/Examples_of_Ciwiki_3_config/configuration_FR/PageHeader.htm000664 001750 001750 00000001441 14267455503 030776 0ustar00jpredonnetjpredonnet000000 000000
./ciwiki-3.0.4/Examples_of_Ciwiki_3_config/configuration_FR/DeleteForm.htm000664 001750 001750 00000000351 14264632676 031043 0ustar00jpredonnetjpredonnet000000 000000
Are you really sure you want to delete the page %s?

./ciwiki-3.0.4/Examples_of_Ciwiki_3_config/configuration_Mobile_and_Laptop/000775 001750 001750 00000000000 14274543461 031337 5ustar00jpredonnetjpredonnet000000 000000 ./ciwiki-3.0.4/Examples_of_Ciwiki_3_config/configuration_Mobile_and_Laptop/styles.css000664 001750 001750 00000007007 14272476744 033407 0ustar00jpredonnetjpredonnet000000 000000 @media only screen and (hover: none) and (pointer: coarse) { body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 22px; color: #333333; margin: 2px; padding: 2px; } #header { font-size: 22px; background-color: #eef; border: 1px solid #aaa; font-family: Verdana, Arial, Helvetica, sans-serif; padding: 5px; margin-bottom:10px; } input { margin-top:1px; padding: 0.2em; background-color: White; border: 1px solid #aaaaaa; font-size: 1.5em; } select { margin-top:1px; padding: 0.2em; background-color: White; border: 1px solid #aaaaaa; font-size: 1.5em; } nav { width: auto; text-align: left; } nav ul { flex-direction: column; } nav li { padding-left: 4px; } nav a { font-size: 1.5em; } } @media (hover: hover) { body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; color: #333333; margin: 2px; padding: 2px; } #header { font-size: 16px; background-color: #eef; border: 1px solid #aaa; font-family: Verdana, Arial, Helvetica, sans-serif; padding: 5px; margin-bottom:10px; } nav ul { list-style-type: none; display: flex; } nav li { margin-right: 15px; } nav a { font-size: 0.9em; color: #181818; padding-bottom: 3px; text-decoration: none; } nav a:hover { color: #760001; border-bottom: 3px solid #760001; } input { margin-top:1px; padding: 0.2em; background-color: White; border: 1px solid #aaaaaa; font-size: 1.0em; } select { margin-top:1px; padding: 0.2em; background-color: White; border: 1px solid #aaaaaa; font-size: 1.0em; } } #header input { margin:0px; padding: 0.1em; background-color: White; border: 1px solid #aaaaaa; font-size: 90%; } #headShHlp{ font-size: 12px; background-color: #eff; border: 1px solid #aaa; font-family: Verdana, Arial, Helvetica, sans-serif; padding: 5px; margin-bottom:10px; } #footer { font-size: 10px; color: #ddd; margin-top:40px; width: 100%; text-align: center; } table.wikitable { background-color: #fff; border: 1px solid #aaa; } table.wikitable td { background-color: #fff; border: 1px solid #aaa; } pre { font-family: monospace; background-color: #eee; padding: 2px; padding-left: 10px; margin-left: 20px; margin-right: 20px; } hr { height: 1px; color: #aaaaaa; background-color: #aaaaaa; border: 0; margin: 0.2em 5px 0.2em 5px; } form { border: none; margin: 0; } textarea { border: 1px solid #aaaaaa; color: Black; background-color: white; width: 99%; padding: 0.1em; overflow: auto; } li { list-style-type: none; display: flex; } a, ulink{ color: #333; text-decoration:none; border-bottom: 1px #333 dotted; display: inline; } a:hover { color: #333; text-decoration: None; border-bottom: 1px #000 solid; } a:visited { color: #333; } #wrapper { text-align:left; margin:0 auto; display: inline-block; min-height:10px; border:1px solid #ccc; padding:5px; } #myvar { border:1px solid #ccc; background:#f2f2f2; padding:5px; } @media all and (max-width: 800px) { nav { width: auto; text-align: left; } nav ul { flex-direction: column; } nav li { padding-left: 4px; } nav a { font-size: 1.2em; } nav a:hover { border-bottom: 0; } } ./ciwiki-3.0.4/Examples_of_Ciwiki_3_config/configuration_Mobile_and_Laptop/EditHeader.htm000664 001750 001750 00000001764 14267447070 034060 0ustar00jpredonnetjpredonnet000000 000000
./ciwiki-3.0.4/Examples_of_Ciwiki_3_config/configuration_Mobile_and_Laptop/ShortHelp.htm000664 001750 001750 00000000453 14267454502 033762 0ustar00jpredonnetjpredonnet000000 000000
=H1 ==H2 ===H3 | *bold* | /italic/ | _underln_ | -strickthr- | +highlight+ | 'quote | [link] or CaMel | ! ignore |* list | ** sublst | # number | --- | {{toc}} | {{private}}
./ciwiki-3.0.4/Examples_of_Ciwiki_3_config/configuration_Mobile_and_Laptop/PageHeader.htm000664 001750 001750 00000001375 14267447022 034042 0ustar00jpredonnetjpredonnet000000 000000
./ciwiki-3.0.4/autogen.sh000777 001750 001750 00000000127 11032514654 017522 0ustar00jpredonnetjpredonnet000000 000000 #! /bin/sh autoreconf -v --install || exit 1 ./configure --enable-maintainer-mode "$@" ./ciwiki-3.0.4/images/000775 001750 001750 00000000000 14274543460 016774 5ustar00jpredonnetjpredonnet000000 000000 ./ciwiki-3.0.4/images/ciwiki.png000777 001750 001750 00000013122 11410310372 020744 0ustar00jpredonnetjpredonnet000000 000000 PNG  IHDREפbKGDC pHYsHHFk>IDATxiǧdI%&";#J`7pȋ9 Q ; (b0hDDD"b*snߛ鮚Ꞿ/zfo޺1RۡZaalеRCiOjU)!>ܵCJnumE塔ݺ_OҎ_;-$J3iۛ1ZiOt\ȁxeM瞃._7\o}eѵk 8K6Y;>Y^#֍}EП ڷo2+Ѕ 55p,6n arp`U"Rj}Զ6mpvf?vǎfڳڢKbhLJ4AsgC hFіot\裏B_xн{҂kRj}!hm =lM7A⭃zO.Z}5=Y9!t*( f~(=З/[GA^P\{{.ݯhyYVr <ZS`5ʬ]c78(%gaCJ{RAU#F`oz+BGi䈮] xs󱞝;]ok@HhO ҥw?̙[n|E7"=F7a:hM%@4/c]nʗ_B?..4Ai 'DJ b%KuǠ睇SE)!xؼzXޚPIԺiSV9 p((%aى'Be죔ԃvADTxz8rE}7ݻÆw ʎCa@H5 (9qĈC1^prΝ=Y7Rgv{cyY; ҚSS :z ÔJ}KJgR!C&ǡH]@oQX;r  Dr!LӢgOo$J wk ,Q_#ukKEBJ ͛2$yCJ AvpmMeC{,?n(ÖAup\}]9ۃW^_Â!])b^'OƁ&AC@&O?>k˘,ѿ?# 4%+Š!\w[G?y¤[q#}cyq;Ձ8 `(()4"L´aRCѾh˸fPaҀ\=k[vRTǂ_\[d)/q1Xb8٬Yіm\&-(%X_v7 ɞ*RR)`(q?3ǵi%!͚=>*; Ŝ*'c[8=J hobǾ2~C bPYZ{,\=ڵi'bČШiٮwfl9UU%[Q4LRm* Ơ:&K~;40s&ٗ^rma)RBKv<r IyZBB3In9tFJC;R_ʵBw{1Z91q\m2u ֬vKj(#XC]Ժa~ndq~kk+"{ n0&ʈTKgi7umJ TW^bLQ!TBXr%n0&*hANcIZCӐSQ)LvRG[,cp;uE[vlCtLj.D6b[nŋ9t緿J5 ?J9jٚ0 (%DNдΚF=ZTi:7mB{N;1@`l!֧egtVV:!=ÇCX> Ӣ26Ib.DʩB۶0m]0R О>w~K8abHپg7ccE]-V(u.DXb>v1ɘ1`J0+x)me [%Nkv7 NjLgT?7.Huh'ih~Q-/ySNZznM4NRD .l0ن% gdp LA1L9HzA .yCYԺO/?&(uٰLPJO>AVfܞg$`u!;}qcJq#4lS.I'] OŸ 3v=3Xek&;HuVhzkPeIh|z۳QH5Ub s8o,@LdvgQ[@)N\zca¾\.~%8t6w=Psbښ[s{ :ʮᖭ[ 7tm股t9bK%ɞ^sgr;ۑtz]@J Bd7tc|;m58[V$3VYG:^Ŏf rrueB%SLi|V0oFe v +?߲ŵe!tO.d2UWA?9̙w >؞쉻'ʍf);z):Diju)n%’)0PÆ7 upSJ]@QkpY܎i!ו ~(]Ga\qSNqmq17o)?J ?X{XVPFv:H\vmf=tu)$ܟPOČ<5`l7-tP[*&5 [C0Jeڛ6~]7,Y'SL4̝J؂C$ɀ_}5Q&MѷooFRjݸ1Bi8iBsr.E!~]˕WBʤIaLi;_[o5d@'NcJ AoTJ4; '~45]:uU 'Y]oSޢtb|;۷5B$%"x!ם:፭]+rI͡uU%K%|55:+w (;Ÿb_u8Tq@xЗ_F ]خuRQ+Lw|1wC 5nDLRk]v 5o;uR!ꊯF>}_6;4(pv`b<;C] ݻCǎv-Mv׼A t@CJÒ()=pZ?8>:̲5d5ސ!h*q-4u@x(%K.]jfI+PIz-+d^|jl!Ghή-LBmMc_.}Cn ]tRB<<3gYMzk˃5@iO>jڶ!A)!Iz ׇmk?R룏F j\f ꉨQ|] t9x0ӠA8Kb$| t!ٺa$ 6=߻w᤮Bx hX.ET KQ.*˸E)!E{9i<RBlތR cWhɣJ^hr)ͅRkJ: ]0G)!hcYծR Ib~2L86CRjݡ׭\,.Pij*lcqwzK+b,qߔ㠙$A3\ʅ(5tv]8.r~IhCxjK7 co6lpEP*_ݔNץ)F Ѕ99.hzm,^|-Kԛ cӡJ"Gb:V⬳sqRBsf(2'KRB:ӦY]I} q+:F͙cgTe$[vFou@0I楗kv;wBHl98+VmzP 7@MѣAR)D\{ms Xǎ7axC C?\z袐}CAnCLPJC{x;h:c'GZJ A]J?mutFp PɨLDPG0&֮^W\zKFLhRߎ0L0@>t͚d`玞;+݆ZGkƷSb᜗]z0ص IeB,/и8tظﶳr֦=J h-5{5;aJ7}ӡ\L r</6o׿RNiFs_3a!(%ɔ:~ z5w|Vh r%ۏ?kØ;Gp$(ْ b0A)!+&@{0PB5/`+VKDup8tXm[=i0,$1*%ŨhuB55<* *6B(n]`*ښ=vD<ڶuI(ӟJYat;FiHBo4鉽xӋ].NI;J hOhg͚A&2<G*~-]Zohv@HcZz(Ҭ]u ,^_iͅS>0.}&2+%;@ g¿ڵ8p4k`)6 mO][D;|wQEE͢Encxs^Dʯu1mZz_l0D qPiks#: 8pJAusgZ7im =Jp#ΤPMbEmRJʁBvsJ 3hϚeg]@oֺkɪ@:ӰP*1ھ=tZRueg}.zisυsiSo7lN)OV>c e\~eI Nġ &-[]xN̙[\nR0yw.>~#V^_@QҽI=4E (Ulܸrׯ.X?'Ɏ su^sd)nm]Ƌ_x+C{*(Z>rg_ҩJJKы-^}*%foHzMCϑRf}8_S@=B J9sѼ_5R.`Iɣ|E_:.vۊ핂RBdq:)n-[ ܸ]YtgWZ*)z?xhy뭋}8y>+=6IENDB`./ciwiki-3.0.4/missing000755 001750 001750 00000015336 14264013246 017125 0ustar00jpredonnetjpredonnet000000 000000 #! /bin/sh # Common wrapper for a few potentially missing GNU programs. scriptversion=2018-03-07.03; # UTC # Copyright (C) 1996-2018 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try '$0 --help' for more information" exit 1 fi case $1 in --is-lightweight) # Used by our autoconf macros to check whether the available missing # script is modern enough. exit 0 ;; --run) # Back-compat with the calling convention used by older automake. shift ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due to PROGRAM being missing or too old. Options: -h, --help display this help and exit -v, --version output version information and exit Supported PROGRAM values: aclocal autoconf autoheader autom4te automake makeinfo bison yacc flex lex help2man Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and 'g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: unknown '$1' option" echo 1>&2 "Try '$0 --help' for more information" exit 1 ;; esac # Run the given program, remember its exit status. "$@"; st=$? # If it succeeded, we are done. test $st -eq 0 && exit 0 # Also exit now if we it failed (or wasn't found), and '--version' was # passed; such an option is passed most likely to detect whether the # program is present and works. case $2 in --version|--help) exit $st;; esac # Exit code 63 means version mismatch. This often happens when the user # tries to use an ancient version of a tool on a file that requires a # minimum version. if test $st -eq 63; then msg="probably too old" elif test $st -eq 127; then # Program was missing. msg="missing on your system" else # Program was found and executed, but failed. Give up. exit $st fi perl_URL=https://www.perl.org/ flex_URL=https://github.com/westes/flex gnu_software_URL=https://www.gnu.org/software program_details () { case $1 in aclocal|automake) echo "The '$1' program is part of the GNU Automake package:" echo "<$gnu_software_URL/automake>" echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/autoconf>" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; autoconf|autom4te|autoheader) echo "The '$1' program is part of the GNU Autoconf package:" echo "<$gnu_software_URL/autoconf/>" echo "It also requires GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; esac } give_advice () { # Normalize program name to check for. normalized_program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` printf '%s\n' "'$1' is $msg." configure_deps="'configure.ac' or m4 files included by 'configure.ac'" case $normalized_program in autoconf*) echo "You should only need it if you modified 'configure.ac'," echo "or m4 files included by it." program_details 'autoconf' ;; autoheader*) echo "You should only need it if you modified 'acconfig.h' or" echo "$configure_deps." program_details 'autoheader' ;; automake*) echo "You should only need it if you modified 'Makefile.am' or" echo "$configure_deps." program_details 'automake' ;; aclocal*) echo "You should only need it if you modified 'acinclude.m4' or" echo "$configure_deps." program_details 'aclocal' ;; autom4te*) echo "You might have modified some maintainer files that require" echo "the 'autom4te' program to be rebuilt." program_details 'autom4te' ;; bison*|yacc*) echo "You should only need it if you modified a '.y' file." echo "You may want to install the GNU Bison package:" echo "<$gnu_software_URL/bison/>" ;; lex*|flex*) echo "You should only need it if you modified a '.l' file." echo "You may want to install the Fast Lexical Analyzer package:" echo "<$flex_URL>" ;; help2man*) echo "You should only need it if you modified a dependency" \ "of a man page." echo "You may want to install the GNU Help2man package:" echo "<$gnu_software_URL/help2man/>" ;; makeinfo*) echo "You should only need it if you modified a '.texi' file, or" echo "any other file indirectly affecting the aspect of the manual." echo "You might want to install the Texinfo package:" echo "<$gnu_software_URL/texinfo/>" echo "The spurious makeinfo call might also be the consequence of" echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" echo "want to install GNU make:" echo "<$gnu_software_URL/make/>" ;; *) echo "You might have modified some files without having the proper" echo "tools for further handling them. Check the 'README' file, it" echo "often tells you about the needed prerequisites for installing" echo "this package. You may also peek at any GNU archive site, in" echo "case some other package contains this missing '$1' program." ;; esac } give_advice "$1" | sed -e '1s/^/WARNING: /' \ -e '2,$s/^/ /' >&2 # Propagate the correct exit status (expected to be 127 for a program # not found, 63 for a program that failed due to version mismatch). exit $st # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: ./ciwiki-3.0.4/src/000775 001750 001750 00000000000 14305574447 016322 5ustar00jpredonnetjpredonnet000000 000000 ./ciwiki-3.0.4/src/Makefile.am000777 001750 001750 00000001021 12457501266 020350 0ustar00jpredonnetjpredonnet000000 000000 PREFIXDIR = $(prefix) PKGDATADIR = $(datadir)/matchbox DATADIR = $(datadir) AM_CFLAGS = $(GCC_FLAGS) INCLUDES = -DDATADIR=\"$(DATADIR)\" -DPKGDATADIR=\"$(PKGDATADIR)\" -DPREFIX=\"$(PREFIXDIR)\" bin_PROGRAMS = ciwiki ciwiki_SOURCES = ci.c ci.h http.c http.h \ util.c util.h wiki.c wiki.h \ wikilogin.c wikilogin.h wikitext.h \ wikichanges.c wikichanges.h \ wikiashtml.c wikiashtml.h \ wikientries.c wikientries.h ./ciwiki-3.0.4/src/wikilogin.c000755 001750 001750 00000046605 14264001230 020451 0ustar00jpredonnetjpredonnet000000 000000 /* * Jean-Pierre Redonnet inphilly@gmail.com * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ /* Note: The login and access grant is simple and old fashion, * without extra dependency. It is just intended to protect * a little bit the privacy of personal pages and decrease the risk * of vandalism. * There is no hash table for fast lock up, so the login can be long * if there are a lot of users online. * * it's not very secure: * registered users, session open, unvanted ips files are just hidden, * The user pwd is simply crypted (hashed) * * Unwanted ips can be added manually: * create .unwanted.txt in .ciwiki folder * and add line with ip address to reject. * * The file ~/newwikiusers.txt contains the new users, * the code after C: and the user name after U: * must be sent by email, with sendmail and little bash script. * * Number of attempt with a wrong P.W. to trigger a lockdown and lockdown duration * can be set. * * Last update july 9, 2022 * * */ #include "ci.h" #include "time.h" extern int hostlogin; extern int nologin; extern int dosendmail; extern int port; extern int lockdown_delay; extern int lockdown_cnt; /* djb2 */ unsigned long long hash(char *str) { unsigned long hash = 5381; int c; while ((c = *str++)) hash = ((hash << 5) + hash) + c; return hash; } /* remove logged off ip - one loop */ void wikilogin_logoff(char *ipsrc) { FILE *fp; char line[100]; char *str_ptr; int lgipsrc=strlen(ipsrc); /* search */ if ((fp = fopen(ACCESSFOLDER"/.session.txt", "r+"))) { while ( fgets(line,100,fp) ) { if ( *line != '*' && (str_ptr=strchr(line,':')) ) { /* skip space */ str_ptr=line; while (*str_ptr == ' ') str_ptr++; /* same ip? */ if ( !strncmp(str_ptr,ipsrc,lgipsrc) ) { /* mark this address dead */ fseek(fp,-(strlen(line)),SEEK_CUR); fputc('*',fp); fclose(fp); return; //done } } } fclose(fp); } //there is a problem if we exit here! } /* remove dead ip - one loop */ void wikilogin_cleanpermission(void) { FILE *fp; char line[100]; char *str_ptr; long val; /* cancel ip after a while without page read */ long now=(time(NULL)/60)-DISCONNECT; //defined in ci.h /* search */ if ((fp = fopen(ACCESSFOLDER"/.session.txt", "r+"))) { while ( fgets(line,100,fp) ) { if ( *line != '*' && (str_ptr=strchr(line,':')) ) { /* skip space */ str_ptr++; while (*str_ptr == ' ') str_ptr++; val= atol(str_ptr); //time last page read if ( val != 0 && val < now) //nothing for a while? { /* mark this address dead */ fseek(fp,-(strlen(line)),SEEK_CUR); fputc('*',fp); fseek(fp,strlen(line)-1,SEEK_CUR); } } } fclose(fp); } } /* routine with 2 successive loops * identify with the ip address not the most secure * acceptable for non-critic informations */ void wikilogin_setpermission(char *ipsrc, char *username) { FILE *fp; char line[100]; int lgipsrc=strlen(ipsrc); char *str_ptr; if ((fp = fopen(ACCESSFOLDER"/.session.txt", "r+"))) { while ( fgets(line,100,fp) ) { /* skip space */ str_ptr=line; while (*str_ptr == ' ') str_ptr++; /* same ip? */ if ( !strncmp(line,ipsrc,lgipsrc) ) { fclose(fp); return; // already logged, nothing to do! } } /* search for a dead ip and replace it */ rewind(fp); while ( fgets(line,100,fp) ) { if (line[0] == '*') { fseek(fp,-(strlen(line)), SEEK_CUR); fprintf(fp,"%32s:%16li:%24s\n", ipsrc, time(NULL)/60, username); fclose(fp); return; //ip recorded } } } /* just add ip at the end */ fp = fopen(ACCESSFOLDER"/.session.txt", "a"); fprintf(fp,"%32s:%16li:%24s\n", ipsrc, time(NULL)/60, username); fclose(fp); return; //ip recorded } /* This routine is called at each page * it looks in hidden files to grant or not permission * look at .unwanted.txt to reject ip (login or not) * look at .alwayswanted.txt to accept ip without login required * look at .session.txt to accept logged used * with two imbricated loops (sequential search) */ int wikilogin_getpermission(char *ipsrc) { FILE *fp; char line[100]; int lgipsrc=strlen(ipsrc); char *str_ptr; /* Unwanted ips: theorically not useful because their logins * has been refused. */ if ((fp = fopen(ACCESSFOLDER"/.unwanted.txt", "r"))) { while ( fgets(line,100,fp) ) if ( !strncmp(line,ipsrc,lgipsrc) ) { fclose(fp); return 0; // refused } fclose(fp); } if ( nologin ) /* any user registered or not is automatically authorized */ return 1; if ( hostlogin ) /* this computer (localhost is automatically authorized)*/ { if ( !strncmp("127.0.0.1",ipsrc,lgipsrc) ) return 1; } /* Always accepted ips: automatically logged in */ if ((fp = fopen(ACCESSFOLDER"/.alwayswanted.txt", "r"))) { while ( fgets(line,100,fp) ) if ( !strncmp(line,ipsrc,lgipsrc) ) { fclose(fp); return 1; // accepted } fclose(fp); } /* sequential search */ if ((fp = fopen(ACCESSFOLDER"/.session.txt", "r+"))) { while ( fgets(line,100,fp) ) { /* skip space */ str_ptr=line; while (*str_ptr == ' ') str_ptr++; /* same ip? */ if ( !strncmp(str_ptr,ipsrc,lgipsrc) ) { /* update the access time * move back 24 chars username + ':' + 16 chars time + '\n' */ fseek(fp,-42,SEEK_CUR); fprintf(fp, "%16li",time(NULL)/60); fclose(fp); return 1; } } fclose(fp); } return 0; } /* * Manage the failed attempts : * wrong password are counted and stored with the ip adr * if wrong pw > threshold the next logins are forbiden (lockdown) * for a duration of 1 to ... min */ int passWordAttempt(char *ipsrc, int status) { FILE *fp; char line[100]; int lgipsrc = strlen(ipsrc); char *str_ptr; int v=0; unsigned long int t=0; switch( status ) { case 0 : //user does login => check attempts count /* if ip found then check attempts count; if val < 4 then ok */ if ( (fp = fopen(ACCESSFOLDER"/.failed_attempts.txt", "r")) ) { while ( fgets(line,100,fp) ) { if( line[0] == '*' ) continue; /* skip space */ str_ptr=line; while (*str_ptr == ' ') str_ptr++; /* same ip? */ if ( !strncmp(str_ptr,ipsrc,lgipsrc) ) { v = atoi(line+33); t = strtoul(line+38, NULL, 10); if( !v && !t ) { //record error syslog(LOG_LOCAL0|LOG_INFO, "count and/or time error in file %s \n", ACCESSFOLDER"/.failed_attempts.txt"); fclose(fp); return 0; //failed } //check if delay expired if( time(NULL)/60 > t+lockdown_delay ) { /* mark as clear record : move back 55 chars = ip(32) + ':' + count(4) + ':' + time(16) + '\n'*/ fseek(fp,-55,SEEK_CUR); fprintf(fp, "*"); fclose(fp); return 1; //lockdown delay expired, user can try again } //check how many attempts if( v < lockdown_cnt) return 1; //user can try again return 0; //too many attempts and delay not expired } } //ip not found fclose(fp); } return 1; break; case 1 : //good pwd => clear attempts count /* if ip found then mark record as cleared */ if ( (fp = fopen(ACCESSFOLDER"/.failed_attempts.txt", "r+")) ) { while ( fgets(line,100,fp) ) { if( line[0] == '*' ) continue; /* skip space */ str_ptr=line; while (*str_ptr == ' ') str_ptr++; /* same ip? */ if ( !strncmp(str_ptr,ipsrc,lgipsrc) ) { /* mark as clear record * move back 55 chars = ip(32) + ':' + count(4) + ':' + time(16) + '\n'*/ fseek(fp,-55,SEEK_CUR); fprintf(fp, "*"); fclose(fp); return 1; //ok cleared } } fclose(fp); } return 1; //ok (no ip found) break; case 2 : //wrong pwd => inc attempts count /* if ip found then inc attempts count */ if ( (fp = fopen(ACCESSFOLDER"/.failed_attempts.txt", "r+")) ) { while ( fgets(line,100,fp) ) { if( line[0] == '*' ) continue; /* skip space */ str_ptr=line; while (*str_ptr == ' ') str_ptr++; /* same ip? */ if ( !strncmp(str_ptr,ipsrc,lgipsrc) ) { /* inc count & update record * move back 22 chars = count(4) + ':' + time(16) + '\n' */ fseek(fp,-22,SEEK_CUR); if( (v = atoi(line+33)) < 1 ) { //record error syslog(LOG_LOCAL0|LOG_INFO, "Inc count impossible - err in %s \n", ACCESSFOLDER"/.failed_attempts.txt"); fclose(fp); return 0; } fprintf(fp, "%4i", v+1); fclose(fp); return 1; //ok count inc } } fclose(fp); } /* ip not found then replace cleared record ('*' marker) */ if ( (fp = fopen(ACCESSFOLDER"/.failed_attempts.txt", "r+")) ) { while ( fgets(line,100,fp) ) { if( line[0] == '*' ) { /* move back 55 chars = ip(32) + ':' + count(4) + ':' + time(16) + '\n' and print the new record */ fseek(fp,-55,SEEK_CUR); fprintf(fp,"%32s:%4i:%16li\n", ipsrc, 1, time(NULL)/60); fclose(fp); return 1; // ok record added } } fclose(fp); } /* no cleared record available so just add ip at the end of the file */ fp = fopen(ACCESSFOLDER"/.failed_attempts.txt", "a"); fprintf(fp,"%32s:%4i:%16li\n", ipsrc, 1, time(NULL)/60); fclose(fp); return 1; // ok record added break; } return 1; //ok } /* A very simple login procedure, old fashion! * Acceptable for a semi private wiki with few users * return permission val > 0 * or error code < 0 * -1 : name or pwd too short * -2 : invalid char in name or pwd * -3 : name or pwd too long * -10 : wrong pwd * -12 : wrong pwd and too many attempts * -20 : wrong usr name * -30 : existing username * -40 : wrong access code * -100 : prog error * function called by wiki.c - wiki_handle_http_request(...) * */ int wikilogin_isvalid(char *username, char *password, char *email, char *code, char *newaccount, char *ipsrc) { FILE *fp; int newac; char line[100]; char *str_ptr; int lgusr=strlen(username); int lgpwd=strlen(password); int lgipsrc=strlen(ipsrc); int permission=1,activate=1; int i; char pwd[128]="",codeok[128]=""; char newusersfile[512] = { 0 }; char sendmailcmd[512] = { 0 }; /* oportunity to make room */ wikilogin_cleanpermission(); if ( newaccount && !strcmp(newaccount,"on") ) newac=1; else newac=0; /* too short */ if (lgusr < 8 || lgpwd < 8) return -1; /* too long */ if (lgusr > 24 || lgpwd > 24) return -3; /* space is used as separator * else any other chars are accepted */ for (i=0; i/dev/null 2>&1 &", SCRIPTMAIL,port); /* Attempt to fork and check for errors */ pid_t pid = fork(); switch( pid ) { case 0: /* Replace the child fork with a new process */ if(execl("/bin/sh","sh","-c",sendmailcmd, NULL) == -1) { /* store failure in log file */ syslog(LOG_LOCAL0|LOG_INFO, "Error: excl %s\n",sendmailcmd); return -100; } else { //syslog(LOG_LOCAL0|LOG_INFO, "Success excl: %s\n",sendmailcmd); //mail immediatly sent and user will have return with the validation code) return -40; } case -1: /* should not occur */ fprintf(stderr,"Wikilogin line %i Cannot fork!\n",__LINE__); return -100; default: /* Parent record the pid */ syslog(LOG_LOCAL0|LOG_INFO, "Sendmail pid=%i\n",pid); } } //mail is not immediatly sent but user will have to return with the validation code! return -40; } if ( code ) { /* add a new user */ if (!(fp = fopen(ACCESSFOLDER"/.login.txt", "a+"))) return -100; //check write permission! fprintf(fp, "%s %s %s %s %li %i %i\n", username,pwd,email, ipsrc,time(NULL)/60,permission,activate); fclose(fp); return 1; //account created } /* There's something wrong if we arrive here! */ return -100; } char *wikirac_isvalid(char *command, char *ipsrc) /* this function validates a new user registration with the * direct link provided in the email */ { FILE *fp; char *password,*email,*username; char *code; char codeok[128],pwd[128]; int permission=1,activate=1; char *str_ptr1,*str_ptr2; /* command should contains the email,code,username,pwd */ str_ptr1=command; if (( str_ptr2=strchr(str_ptr1,',')) ) { *str_ptr1='\0'; email=str_ptr1; str_ptr1=str_ptr2+1; } else return NULL; if (( str_ptr2=strchr(str_ptr1,',')) ) { *str_ptr2='\0'; code=str_ptr1; str_ptr1=str_ptr2+1; } else return NULL; if (( str_ptr2=strchr(str_ptr1,',')) ) { *str_ptr2='\0'; username=str_ptr1; str_ptr1=str_ptr2+1; } else return NULL; if ( strlen(str_ptr1) <= 24 ) password=str_ptr1; else return NULL; /* is it a valid code ? */ sprintf(codeok,"%llx",hash(username)); //access code with username if ( strcmp(code,codeok) == 0 ) { sprintf(pwd,"%016llx",hash(password)); /* add a new user */ if (!(fp = fopen(ACCESSFOLDER"/.login.txt", "a+"))) return NULL; //check write permission! fprintf(fp, "%s %s %s %s %li %i %i\n", username,pwd,email, ipsrc,time(NULL)/60,permission,activate); fclose(fp); return username; //account created } else return NULL; //wrong code } char *wikilogin_username(char *ipsrc) { FILE *fp; static char line[100]; char *str_ptr; int lgipsrc=strlen(ipsrc); if ((fp = fopen(ACCESSFOLDER"/.session.txt", "r+"))) { while ( fgets(line,100,fp) ) { /* skip space */ str_ptr=line; while (*str_ptr == ' ') str_ptr++; /* same ip? */ if ( !strncmp(str_ptr,ipsrc,lgipsrc) ) { fclose(fp); /* will point to the username */ if ( (str_ptr=strchr(str_ptr,':')) && (str_ptr=strchr(str_ptr+1,':')) ) { /* skip space, suppress eol */ str_ptr++; while ( *str_ptr == ' ' ) str_ptr++; *strchr(str_ptr,'\n')='\0'; return str_ptr; } } } } return NULL; } int wikilogin_chgpwd(char *ipsrc, char *password, char *newpassword) { FILE *fp; static char line[100]; char *str_ptr; char *username; char pwd[128]="",newpwd[128]=""; int i; int lgpwd = strlen(newpassword); if ( lgpwd < 8) return(-1); //new password too short if (lgpwd > 24) return(-3); //new password too long for (i=0; i<%s>***NPWD:<%s><%s>", // password,pwd,newpassword,newpwd); /* search */ if ((fp = fopen(ACCESSFOLDER"/.login.txt", "r+"))) { while ( fgets(line,100,fp) ) if ( !strncmp(line,username,lgusr) ) { if ( (str_ptr=strchr(line,' ')) && !strncmp(str_ptr+1,pwd,lgpwd) ) { fseek(fp,1-(strlen(str_ptr)), SEEK_CUR); fprintf(fp, "%s",newpwd); fclose(fp); return 1; //okay } else { fclose(fp); return -10; //wrong password } } fclose(fp); return -20; //username not found } return -100; //cannot open } ./ciwiki-3.0.4/src/util.h000755 001750 001750 00000000734 14300663762 017447 0ustar00jpredonnetjpredonnet000000 000000 #ifndef _HAVE_UTIL_HEADER #define _HAVE_UTIL_HEADER char * util_mprintf(const char *format, ...); int util_ascii_to_hex(int c); void util_dehttpize(char *z); char * util_extract_token(char *input, char **leftOver); char * util_htmlize(const char *in, int n); char * util_httpize(const char* url); int validDate(char *input); int parseIpv4Address(uint32_t *addr, const char *addrStr); char* code(char *key, char *str); char* decode(char *key, char *str); #endif ./ciwiki-3.0.4/src/wiki.c000777 001750 001750 00000161072 14305340330 017423 0ustar00jpredonnetjpredonnet000000 000000 /* * CiWiki is a fork of DidiWiki - a small lightweight wiki engine. * CiWiki Copyright 2010-2015 Jean-Pierre Redonnet * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include "ci.h" #include "wikitext.h" #include "wikilogin.h" #include "wikichanges.h" #include "wikiashtml.h" #include "wikientries.h" /* local variable */ static int errorcnt=0; static char* CssData = STYLESHEET; //default css data are in wikitext.h static char* EditHeader = EDITHEADER; static char* PageHeader = PAGEHEADER; static char* ShortHelp = SHORTHELP; static char* LogInForm = LOGINFORM; static char* LogInForm2 = LOGINFORM2; static char* NewLogInForm = NEWLOGINFORM; //static char* ChgPwdForm = CHGPWDFORM; //? static char* LogInfo = LOGINFO; static char* CreateForm = CREATEFORM; static char* EditForm = EDITFORM; static char* DeleteForm = DELETEFORM; static char* HomeRedirect = HOMEREDIRECT; static char *msgList[30] = { "", MSG01, MSG02, MSG03, MSG04, MSG05, MSG06, MSG07, MSG08, MSG09, MSG10, MSG11, MSG12, MSG13, MSG14, MSG15, MSG16, MSG17, MSG18, MSG19, MSG20, MSG21, MSG22, MSG23, MSG24, MSG25, MSG26, MSG27 }; /* external variable */ extern long int upload_status; extern int lgindex; extern int Exec_allowed; extern int Upload_allowed; extern int indexShowWhat; extern int secureLogin; extern char* secureKey; int loginform; /* read wiki page, styles.css, header, forms and allocate enough mem * don't forget to free() the allocated memory */ static char * file_read(char *filename) { struct stat st; FILE* fp; char* str; int len; /* Get the file size. */ if (stat(filename, &st)) return NULL; if (!(fp = fopen(filename, "rb"))) return NULL; str = (char *)malloc(sizeof(char)*(st.st_size + 1)); len = fread(str, 1, st.st_size, fp); if (len >= 0) str[len] = '\0'; fclose(fp); return str; } /* save wiki page */ static int file_write(char *filename, char *data) { FILE* fp; int bytes_written = 0; int len = strlen(data); /* clip off extra '\0' */ char filename_prev[strlen(filename)+10]; char *str_ptr; /* replace each space between 2 words with an underline */ while ( (str_ptr=strchr(filename,' ')) ) *str_ptr='_'; /* page will be restored */ if ( strstr(filename,".prev.1") ) { /* previous page restored as current page */ strcpy(filename_prev,filename); *strstr(filename,".prev.1")='\0'; //remove ext rename(filename,filename_prev); } else { /* backup the previous page */ strcpy(filename_prev,filename); strcat(filename_prev,".prev.1"); rename(filename,filename_prev); } if (!(fp = fopen(filename, "wb"))) return -1; while ( len > 0 ) { bytes_written = fwrite(data, sizeof(char), len, fp); len = len - bytes_written; data = data + bytes_written; } fclose(fp); return 1; } /* * Save messages */ static int file_writeMsg(char *filename) { FILE* fp; if (!(fp = fopen(filename, "w"))) return -1; fprintf(fp, "#Autogenerated by ciwiki.\n\n"); fprintf(fp, "MSG01\n%s\n/MSG\n\n", MSG01); fprintf(fp, "MSG02\n%s\n/MSG\n\n", MSG02); fprintf(fp, "MSG03\n%s\n/MSG\n\n", MSG03); fprintf(fp, "MSG04\n%s\n/MSG\n\n", MSG04); fprintf(fp, "MSG05\n%s\n/MSG\n\n", MSG05); fprintf(fp, "MSG06\n%s\n/MSG\n\n", MSG06); fprintf(fp, "MSG07\n%s\n/MSG\n\n", MSG07); fprintf(fp, "MSG08\n%s\n/MSG\n\n", MSG08); fprintf(fp, "MSG09\n%s\n/MSG\n\n", MSG09); fprintf(fp, "MSG10\n%s\n/MSG\n\n", MSG10); fprintf(fp, "MSG11\n%s\n/MSG\n\n", MSG11); fprintf(fp, "MSG12\n%s\n/MSG\n\n", MSG12); fprintf(fp, "MSG13\n%s\n/MSG\n\n", MSG13); fprintf(fp, "MSG14\n%s\n/MSG\n\n", MSG14); fprintf(fp, "MSG15\n%s\n/MSG\n\n", MSG15); fprintf(fp, "MSG16\n%s\n/MSG\n\n", MSG16); fprintf(fp, "MSG17\n%s\n/MSG\n\n", MSG17); fprintf(fp, "MSG18\n%s\n/MSG\n\n", MSG18); fprintf(fp, "MSG19\n%s\n/MSG\n\n", MSG19); fprintf(fp, "MSG20\n%s\n/MSG\n\n", MSG20); fprintf(fp, "MSG21\n%s\n/MSG\n\n", MSG21); fprintf(fp, "MSG22\n%s\n/MSG\n\n", MSG22); fprintf(fp, "MSG23\n%s\n/MSG\n\n", MSG23); fprintf(fp, "MSG24\n%s\n/MSG\n\n", MSG24); fprintf(fp, "MSG25\n%s\n/MSG\n\n", MSG25); fprintf(fp, "MSG26\n%s\n/MSG\n\n", MSG26); fprintf(fp, "MSG27\n%s\n/MSG\n\n", MSG27); fclose(fp); return 1; } /* * Load messages */ static int file_readMsg(char *filename) { FILE *fp; char line[128]; char *buff; int msgFlag = 0; int msgNum = 0; if (!(fp = fopen(filename, "r"))) return -1; if (!(buff = malloc(1024))){ fclose(fp); return -1; } while( fgets(line, sizeof(line), fp) ) { line[127] = '\0'; if( line[0] == '#' ) continue; if( strncmp(line, "MSG", 3) == 0 ) { msgNum = atoi( line+3 ); if( msgNum == 0 ) syslog(LOG_LOCAL0|LOG_INFO, "MSG number error in %s\n", filename); else msgFlag = 1; buff[0] = '\0'; continue; } if( strncmp(line, "/MSG", 4) == 0 ) { msgFlag = 0; msgList[msgNum] = strdup(buff); continue; } if( msgFlag ) { if( (strlen(buff) + strlen(line)) < 1024 ) strcat(buff, line); else syslog(LOG_LOCAL0|LOG_INFO, "Error, text message > 1023 chars"); } }//end while loop fclose(fp); free(buff); return 1; } int wiki_redirect(HttpResponse *res, char *location) { char *location_enc = util_httpize(location); int header_len = strlen(location_enc) + 14; // ! good idea to check header_len < LIMIT ? char *header = alloca(sizeof(char)*header_len); // ! alloca in stack, avoid too large size! snprintf(header, header_len, "Location: %s\r\n", location_enc); free(location_enc); http_response_append_header(res, header); http_response_printf(res, "\n

Redirect to %s

\n\n", location); http_response_set_status(res, 302, "Moved Temporarily"); http_response_send(res); exit(0); } void wiki_page_forbiden(HttpResponse *res) { http_response_printf(res, msgList[1]); http_response_set_status(res, 403, "Forbiddend_name, &st1); stat((*d2)->d_name, &st2); if (st1.st_mtime > st2.st_mtime) return 1; else return -1; } /* compare files names to sort on first char and length */ static int names_compar(const struct dirent **d1, const struct dirent **d2) { if ( tolower(((*d1)->d_name)[0]) == tolower(((*d2)->d_name)[0]) ) { if ( strlen((*d1)->d_name) < strlen((*d2)->d_name) ) return 1; else return -1; } if ( tolower(((*d1)->d_name)[0]) < tolower(((*d2)->d_name)[0]) ) return 1; else return -1; } WikiPageList** wiki_get_pages(int *n_pages, char *expr, int exprInName) /* search expr in each pages or expr==filename; * if exprInName==1 seach expr inside filename */ { WikiPageList **pages; struct dirent **namelist; int n, i = 0; struct stat st; struct passwd *pwd; struct group *grp; n = scandir(".", &namelist, 0, (void *)changes_compar); pages = malloc((sizeof(WikiPageList*)+1)*n); while(n--) { if ((namelist[n]->d_name)[0] == '.' || !strcmp(namelist[n]->d_name, "styles.css")) goto cleanup; /* are we looking for an expression in the wiki? */ if (expr != NULL) { if ( !(exprInName && (strcasestr(namelist[n]->d_name, expr))) ) /* if <> is not in the filename */ { /* Super Simple Search inside each pages */ char *data = NULL; /* load the page */ if ((data = file_read(namelist[n]->d_name)) != NULL) if (strcasestr(data, expr) == NULL) //if expr not found in page if (strcmp(namelist[n]->d_name, expr) != 0) //if expr doesn't match filename goto cleanup; } } stat(namelist[n]->d_name, &st); /* ignore anything but regular readable files */ if (S_ISREG(st.st_mode) && access(namelist[n]->d_name, R_OK) == 0) { pwd=getpwuid(st.st_uid); grp=getgrgid(st.st_gid); pages[i] = malloc(sizeof(WikiPageList)+1); pages[i]->name = strdup(namelist[n]->d_name); pages[i]->mtime = st.st_mtime; if (pwd) pages[i]->user_name = strdup(pwd->pw_name); else pages[i]->user_name = strdup("ERR pwd"); if (grp) pages[i]->grp_name = strdup(grp->gr_name); else pages[i]->grp_name = strdup("ERR grp"); i++; } cleanup: free(namelist[n]); } //end while *n_pages = i; free(namelist); if (i==0) return NULL; return pages; } void wiki_show_secureLogin_page(HttpResponse *res) { //wiki_show_header(res, "Login Page", FALSE, 0); if( secureKey ) http_response_printf(res, "%s", SECURELOGIN2); else http_response_printf(res, "%s", SECURELOGIN); //wiki_show_footer(res); http_response_send(res); exit(0); } void wiki_show_login_page(HttpResponse *res) { wiki_show_header(res, "Login Page", FALSE, 0); if (loginform == 2) http_response_printf(res, "%s", LogInForm2); else http_response_printf(res, "%s", LogInForm); wiki_show_footer(res); http_response_send(res); exit(0); } void wiki_show_newaccount_page(HttpResponse *res) { wiki_show_header(res, "Login Page", FALSE, 0); http_response_printf(res, "%s", NewLogInForm); wiki_show_footer(res); http_response_send(res); exit(0); } void wiki_show_loginfo_page(HttpResponse *res, char *ipsrc) { wiki_show_header(res, "Log Info Page", FALSE, 0); http_response_printf(res, LogInfo, ipsrc, wikilogin_username(ipsrc)); wiki_show_footer(res); http_response_send(res); exit(0); } void wiki_show_index_page(HttpResponse *res, char *dir, int namesort, int autorized) /* when "Index" clicked : List pages and files inside .Ciwiki */ { struct dirent **namelist; int n; int count_files; int numvar; count_files=4; //4 lines images,files,html,wiki numvar=1; if (!dir) dir=strdup("."); //wiki , file, images. html, templates folders are allowed if ( *dir=='.' || !strcmp(dir,"files") || !strcmp(dir,"images") || !strcmp(dir,"html") ) { wiki_show_header(res, "Index", FALSE, 0); if( namesort ) { //sort name in alphabetic order n = scandir(dir, &namelist, 0, (void *)names_compar); // link to sort by date http_response_printf(res,"
  • [ 1/12...31/12 ]
  • \n"); } else { // sort by date change n = scandir(dir, &namelist, 0, (void *)changes_compar); // link to sort by name http_response_printf(res,"
  • [ a,b,c,d,e... ]
  • \n"); } /*prepare an collapsible box. javascript must be enabled! */ http_response_printf(res, "

    Index %i

    \n",numvar,numvar,numvar); http_response_printf(res, "
      \n"); //create links to the folders for logged user if ( autorized ) { if( (indexShowWhat & 1) ) //show link to folder images { if ( !strcmp(dir,PICSFOLDER) ) http_response_printf(res, "
    • Folder:%s
    • \n", PICSFOLDER,PICSFOLDER); else http_response_printf(res, "
    • Folder:%s
    • \n", PICSFOLDER,PICSFOLDER); } if( (indexShowWhat & 2) ) //show link to folder files { if ( !strcmp(dir,FILESFOLDER) ) http_response_printf(res, "
    • Folder:%s
    • \n", FILESFOLDER,FILESFOLDER); else http_response_printf(res, "
    • Folder:%s
    • \n", FILESFOLDER,FILESFOLDER); } if( (indexShowWhat & 4) ) //show link to folder html { if ( !strcmp(dir,HTMLFOLDER) ) http_response_printf(res, "
    • Folder:%s
    • \n", HTMLFOLDER,HTMLFOLDER); else http_response_printf(res, "
    • Folder:%s
    • \n", HTMLFOLDER,HTMLFOLDER); } if( indexShowWhat ) //show link to folder wiki { if (*dir=='.') http_response_printf(res, "
    • Folder:%s
    • \n", ".","Wiki"); else http_response_printf(res, "
    • Folder:%s
    • \n", ".","Wiki"); } } //links to the files inside the selected folder while(n--) { if ( namelist[n]->d_type == DT_REG ) { //exclude hidden and style if ((namelist[n]->d_name)[0] == '.' || !strcmp(namelist[n]->d_name, "styles.css")) goto cleanup; // if exclude templates if( !(indexShowWhat & 8) && strstr(namelist[n]->d_name, ".template") ) goto cleanup; //print link to page and page name (previous pages are not printed) if ( !strstr(namelist[n]->d_name,".prev.") ) { //box is full so create a new one if (count_files >=lgindex) { count_files=0; http_response_printf(res, "
    \n"); http_response_printf(res, "
    \n"); if (numvar%4 == 0) http_response_printf(res, "
    \n"); numvar++; //Note= javascript must be enabled! http_response_printf(res, "

    Index %i

    \n",numvar,numvar,numvar); http_response_printf(res, "
      \n"); } /* show filename - link to /folder/filname */ http_response_printf(res, "
    • %s
    • \n", dir,namelist[n]->d_name, namelist[n]->d_name); count_files++; } cleanup: free(namelist[n]); } } //end while http_response_printf(res, "
    \n"); http_response_printf(res, "\n"); free(namelist); } else http_response_printf(res, "Wrong folder.

    \n"); wiki_show_footer(res); http_response_send(res); exit(0); } void wiki_show_search_results_page(HttpResponse *res, char *expr) /* When search box + return pressed */ { WikiPageList **pages = NULL; int n_pages, i; int searchInName, searchInPage, linkFound=0; if ( expr == NULL || strlen(expr) == 0 || (strlen(expr) == 1 && (expr[0] == '@' || expr[0] == '/')) ) { wiki_show_header(res, "Search", FALSE, 0); http_response_printf(res, "No Search Terms supplied"); wiki_show_footer(res); http_response_send(res); exit(0); } searchInName = searchInPage = 1; if ( expr[0] == '@' ) { searchInName = 0; expr++; } if ( expr[0] == '/' ) { searchInPage = 0; expr++; } /* search for exp in the wiki */ pages = wiki_get_pages(&n_pages, expr, searchInName); /* if only one page is found, redirect to it */ if (n_pages == 1) wiki_redirect(res, pages[0]->name); if (pages) { /* redirect on page name if exact match */ /* if ( searchInName ) { for (i=0; iname, expr) && (strlen(pages[i]->name) == strlen(expr)) ) wiki_redirect(res, pages[i]->name); } */ wiki_show_header(res, "Search", FALSE, 0); /* list filename (name of wikipage) containing <> but skip .prev.1 */ if ( searchInName ) { linkFound=0; for (i=0; iname, ".prev.1") && strcasestr(pages[i]->name, expr)) { linkFound++; http_response_printf(res, "/%s
    \n", pages[i]->name, pages[i]->name); } if ( linkFound ) http_response_printf(res, "
    \n"); else http_response_printf(res, "(No file name match.)
    \n"); } /* list pages containing <> but skip .prev.1 */ if ( searchInPage ) { linkFound=0; for (i=0; iname, ".prev.1") ) { linkFound++; http_response_printf(res, "%s
    \n", pages[i]->name, pages[i]->name); } if ( !linkFound ) http_response_printf(res, "(Expression not found inside pages.)
    \n"); } } else { wiki_show_header(res, "Search", FALSE, 0); http_response_printf(res, "No matches!"); } wiki_show_footer(res); http_response_send(res); exit(0); } void wiki_show_template(HttpResponse *res, char *template_data) { /* 4 templates - header.html, footer.html, header-noedit.html, footer-noedit.html Vars; $title - page title. $include() - ? $pages */ } /* Contain javascript! Can be an issue if users didn't enabled script exec */ void wiki_show_header(HttpResponse *res, char *page_title, int want_edit, int autorized) { http_response_printf(res, "\n" "\n" "\n" "\n" "\n" "\n" "%s\n" "\n" "\n" "\n", page_title ); if (want_edit) http_response_printf(res, EditHeader, page_title, page_title, page_title, autorized ? "You are logged in":"login"); else http_response_printf(res, PageHeader, page_title, "" ); } void wiki_show_footer(HttpResponse *res) { http_response_printf(res, "%s", PAGEFOOTER); http_response_printf(res, "\n" "\n" ); } /* 2014/09/04 : Thanks to Alexander Izmallow for its patch * fix ciwiki vulnerability */ int page_name_is_good(char* page_name) { /* We should give access only to subdirs of ciwiki root. I guess that check for absense of '/' is enough. TODO: Use realpath() */ if (!page_name) return FALSE; if (!isalnum(page_name[0])) return FALSE; if (strstr(page_name, "..")) return FALSE; return TRUE; } void wiki_handle_rest_call(HttpRequest *req, HttpResponse *res, char *func) { if (func != NULL && *func != '\0') { if (!strcmp(func, "page/get")) { char *page = http_request_param_get(req, "page"); if (page == NULL) page = http_request_get_query_string(req); if (page && page_name_is_good(page) && (access(page, R_OK) == 0)) { http_response_printf(res, "%s", file_read(page)); http_response_send(res); return; } } else if (!strcmp(func, "page/set")) { char *wikitext = NULL, *page = NULL; if( ( (wikitext = http_request_param_get(req, "text")) != NULL) && ( (page = http_request_param_get(req, "page")) != NULL)) { if (page_name_is_good(page)) { file_write(page, wikitext); /* log modified page name and IP address */ syslog(LOG_LOCAL0|LOG_INFO, "page %s modified from %s", page ,http_request_get_ip_src(req)); http_response_printf(res, "success"); } else { http_response_printf(res, "error"); } http_response_send(res); return; } } else if (!strcmp(func, "page/delete")) { char *page = http_request_param_get(req, "page"); if (page == NULL) page = http_request_get_query_string(req); if (page && page_name_is_good(page) && (unlink(page) > 0)) { http_response_printf(res, "success"); http_response_send(res); return; } } else if (!strcmp(func, "page/exists")) { char *page = http_request_param_get(req, "page"); if (page == NULL) page = http_request_get_query_string(req); if (page && page_name_is_good(page) && (access(page, R_OK) == 0)) { http_response_printf(res, "success"); http_response_send(res); return; } } else if (!strcmp(func, "pages") || !strcmp(func, "search")) { WikiPageList **pages = NULL; int n_pages, i; char *expr = http_request_param_get(req, "expr"); if (expr == NULL) expr = http_request_get_query_string(req); pages = wiki_get_pages(&n_pages, expr, 0); if (pages) { for (i=0; imtime); strftime(datebuf, sizeof(datebuf), "%Y-%m-%d %H:%M", pTm); http_response_printf(res, "%s\t%s\n", pages[i]->name, datebuf); } http_response_send(res); return; } } } http_response_set_status(res, 500, "Error"); http_response_printf(res, "Failed\n"); http_response_send(res); return; } ///////////////////////////////////////////////////////////////////// /* wiki_handle_http_request is the Main function * It gets the request and then calls the functions to: * - load page (wikitext) * - convert wikitext to html * - edit wikitext * - save, delete wikitext * - list pages (index) * - list changes * - login * - get permission with wikilogin_getpermission(client ip) */ void wiki_handle_http_request(HttpRequest *req) { HttpResponse *res = http_response_new(req); char *page = http_request_get_path_info(req); char *command = http_request_get_query_string(req); char *wikitext = NULL; int return_code=0, private=1, autorized=0; char *msg,*link; char *listbox; char *value; char *str_ptr; char *folder; char *username; char *password; util_dehttpize(page);// remove any encoding on the requested page name. /* If login is required before any request and if user is already not logged */ if ( secureLogin && !wikilogin_getpermission(http_request_get_ip_src(req)) ) { if ( http_request_param_get(req, "username") != NULL ) { if( secureKey ) { username = decode(secureKey, http_request_param_get(req, "cypunm")); password = decode(secureKey, http_request_param_get(req, "cyppsw")); } else { username = http_request_param_get(req, "username"); password = http_request_param_get(req, "password"); } /* //only to debug fprintf(stderr,"(%s){%s}[%s]", secureKey, username, password); //to delete! */ /* log is valid ? */ if ( (return_code=wikilogin_isvalid( username, password, "","","", http_request_get_ip_src(req) ) ) > 0 ) { /* code > 0, so permission is granted */ wikilogin_setpermission( http_request_get_ip_src(req), username ); /* store in log file */ syslog(LOG_LOCAL0|LOG_INFO, "Login successful from %s", http_request_get_ip_src(req)); /* go the the home page */ page="/WikiHome"; wiki_redirect(res, "WikiHome"); } else { // wrong login!!! http_response_set_status(res, 404, "Not Found"); http_response_printf(res, "Login error. Access denied.\n"); http_response_send(res); } } else // provide the login page wiki_show_secureLogin_page( res ); exit(0); } if (!strcmp(page, "/")) { if (access("WikiHome", R_OK) != 0) wiki_redirect(res, "/WikiHome?create"); page = "/WikiHome"; } if (!strcmp(page, "/styles.css")) { /* Return CSS page */ http_response_set_content_type(res, "text/css"); http_response_printf(res, "%s", CssData); http_response_send(res); exit(0); } if (!strcmp(page, "/favicon.ico")) { /* Return favicon */ http_response_set_content_type(res, "image/ico"); http_response_set_data(res, FaviconData, FaviconDataLen); http_response_send(res); exit(0); } /* filter file extensions */ if ( (str_ptr=strrchr(page, '.')) ) { /* check if it's an image extension */ if ( !strcasecmp(str_ptr, ".png") || !strcasecmp(str_ptr, ".jpeg") || !strcasecmp(str_ptr, ".jpg") || !strcasecmp(str_ptr, ".gif") || !strcasecmp(str_ptr, ".pdf") ) { http_response_send_smallfile(res, page+1, "image/ico", MAXFILESIZE); //size limitation, see ci.h exit(0); } /* to download any file located in the folder /files/ */ else if (strstr(page, "/files/")) { http_response_send_bigfile(res, page+1, "application/octet-stream"); exit(0); } /* html, css and js are allowed in the folder /html/ */ else if ( !strncmp(page, "/html/",6) ) { /* check if it's html file */ if ( !strcasecmp(str_ptr, ".htm") || !strcasecmp(str_ptr, ".html") ) { /* Return html page - Need to be tested to be sure there no safety issue! */ http_response_send_bigfile(res, page+1, "text/html"); // => no size limitation //http_response_send_smallfile(res, page+1, "html", MAXFILESIZE); //size limitation, see ci.h exit(0); } /* check if it's css file */ else if ( !strcasecmp(str_ptr, ".css") ) { /* Return css page - Need to be tested to be sure there no safety issue! */ http_response_send_bigfile(res, page+1, "text/css"); // => no size limitation //http_response_send_smallfile(res, page+1, "html", MAXFILESIZE); //size limitation, see ci.h exit(0); } /* check if it's js file */ else if ( !strcasecmp(str_ptr, ".js") ) { /* Return js code - Need to be tested to be sure there no safety issue! */ http_response_send_bigfile(res, page+1, "application/javascript"); // => no size limitation //http_response_send_smallfile(res, page+1, "html", MAXFILESIZE); //size limitation, see ci.h exit(0); } } //Next todo: Allow css and javascript files located in the folder/html/ } page = page + 1; /* skip slash */ if (!strncmp(page, "api/", 4)) { char *p; page += 4; for (p=page; *p != '\0'; p++) if (*p=='?') { *p ='\0'; break; } wiki_handle_rest_call(req, res, page); exit(0); } /* A little safety issue a malformed request for any paths, * There shouldn't need to be any.. */ if (strchr(page, '/')) { http_response_set_status(res, 404, "Not Found"); http_response_printf(res, "404 Not Found\n"); http_response_send(res); exit(0); } /* Safety issue if Exec_allowed. login required! */ if (Exec_allowed && !strcmp(page, ".Execute") && wikilogin_getpermission(http_request_get_ip_src(req)) ) { FILE *pop; int status; char string[256]; string[255]='\0'; status=0; //char* scriptname; char* scriptfullpath; /* exec file located in /scripts/ */ asprintf(&scriptfullpath,"./scripts/%s",http_request_param_get(req, "Script")); if ( (pop = popen(scriptfullpath, "w")) ) { while (fgets(string, 255, pop) != NULL) { if (*string=='\0' || *string==EOF) break; http_response_printf(res, "%s\n",string); *string='\0'; } status = pclose(pop); if (status==-1) http_response_printf(res, "\n%s\n","Error executing script!"); } else http_response_printf(res, "Cannot run script!\n"); http_response_send(res); exit(0); } else if (Upload_allowed && !strcmp(page, "Upload") && wikilogin_getpermission(http_request_get_ip_src(req)) ) { if (upload_status < -1) msg=strdup(msgList[2]); else if (upload_status == -1) msg=strdup(msgList[3]); else asprintf(&msg,msgList[4],upload_status); http_response_printf(res, "%s

    " "" "\n",msg,BACK); http_response_send(res); //upload_status=0; exit(0); } else if (!strcmp(page, "Login")) { if ( !strncmp(command, "rac=",4) ) /* url: /Login?rac=rac=xxxxxxxxx&username * rac means return of access code */ { char *username=NULL; if ( (username=wikirac_isvalid( command+4, http_request_get_ip_src(req))) ) { /* code > 0, so permission is granted */ wikilogin_setpermission( http_request_get_ip_src(req), username ); /* store in log file */ syslog(LOG_LOCAL0|LOG_INFO, "Login successful from %s", http_request_get_ip_src(req)); /* go the the home page */ page="/WikiHome"; wiki_redirect(res, "WikiHome"); } else { /* Failure: Return a msg to the user */ msg=strdup(msgList[5]); link=strdup("href='WikiHome'>Home Page"); http_response_printf(res, "%s

    " "
    " "\n",msg,link); http_response_send(res); /* store msg in log file */ syslog(LOG_LOCAL0|LOG_INFO, "Login error %s from %s", msg ,http_request_get_ip_src(req)); free(msg); exit(0); } } else if ( http_request_param_get(req, "logoff") != NULL ) /* the form contains the input name:logoff. */ { wikilogin_logoff(http_request_get_ip_src(req)); /* go the the home page */ page="/WikiHome"; wiki_redirect(res, "WikiHome"); exit(0); } else if ( http_request_param_get(req, "chgpwd") != NULL ) /* the form contains the input name:chgpwd. */ { if ( wikilogin_username(http_request_get_ip_src(req)) != NULL ) { int status = wikilogin_chgpwd( http_request_get_ip_src(req), http_request_param_get(req, "password"), http_request_param_get(req, "newpassword") ); if (status > 0) { /* store in log file */ syslog(LOG_LOCAL0|LOG_INFO, "PWD change from %s status:%i", http_request_get_ip_src(req), status); /* Confirm and go the the home page */ msg=strdup(msgList[6]); link=strdup("href='WikiHome'>Home Page"); http_response_printf(res, "%s

    " "
    " "\n",msg,link); http_response_send(res); /* store msg in log file */ syslog(LOG_LOCAL0|LOG_INFO, "Password changed from %s", http_request_get_ip_src(req)); free(msg); exit(0); } else { /* Failure: Return a msg to the user */ switch(status) { case -1 : msg=strdup(msgList[7]); link=strdup(BACK); break; case -2 : msg=strdup(msgList[8]); link=strdup(BACK); break; case -3 : msg=strdup(msgList[9]); link=strdup(BACK); break; case -10 : msg=strdup(msgList[10]); link=strdup(BACK); break; case -20 : msg=strdup(msgList[11]); link=strdup(BACK); break; case -100: msg=strdup(msgList[12]); link=strdup("href='WikiHome'>Home Page"); break; default : msg=strdup(msgList[13]); link=strdup("href='WikiHome'>Home Page"); } http_response_printf(res, "%s

    " "
    " "\n",msg,link); http_response_send(res); /* store msg in log file */ syslog(LOG_LOCAL0|LOG_INFO, "Change password error %s from %s", msg ,http_request_get_ip_src(req)); free(msg); exit(0); } } else { /* Failure: Return a msg to the user */ msg=strdup(msgList[14]); link=strdup("href='WikiHome'>Home Page"); http_response_printf(res, "%s

    " "
    " "\n",msg,link); http_response_send(res); free(msg); exit(0); } } else if ( http_request_param_get(req, "username") != NULL ) /* the form contains an username, it's a login page */ { /* log is valid ? */ if ( (return_code=wikilogin_isvalid( http_request_param_get(req, "username"), http_request_param_get(req, "password"), http_request_param_get(req, "email"), http_request_param_get(req, "code"), http_request_param_get(req, "newaccount"), http_request_get_ip_src(req) ) ) > 0 ) { /* code > 0, so permission is granted */ wikilogin_setpermission( http_request_get_ip_src(req), http_request_param_get(req, "username") ); /* store in log file */ syslog(LOG_LOCAL0|LOG_INFO, "Login successful from %s", http_request_get_ip_src(req)); /* go the the home page */ page="/WikiHome"; wiki_redirect(res, "WikiHome"); } else /* code < 1 reports error */ { switch(return_code) { case 0 : msg=strdup(msgList[15]); link=strdup("href='WikiHome'>Home Page"); break; case -1 : msg=strdup(msgList[16]); link=strdup(BACK); break; case -2 : msg=strdup(msgList[17]); link=strdup(BACK); break; case -3 : msg=strdup(msgList[18]); link=strdup(BACK); break; case -10 : msg=strdup(msgList[19]); link=strdup(BACK); break; case -12 : msg=strdup(msgList[20]); link=strdup(BACK); break; case -20 : msg=strdup(msgList[21]); link=strdup(BACK); break; case -30 : msg=strdup(msgList[22]); link=strdup(BACK); break; case -35 : msg=strdup(msgList[23]); link=strdup(BACK); break; case -40 : msg=strdup(msgList[24]); link=strdup("href='WikiHome'>Home Page"); break; case -100: msg=strdup(msgList[25]); link=strdup("href='WikiHome'>Home Page"); break; default : msg=strdup(msgList[26]); link=strdup("href='WikiHome'>Home Page"); } /* Return a msg to the user */ http_response_printf(res, "%s

    " "

    \n",msg,link); http_response_send(res); /* store msg in log file */ syslog(LOG_LOCAL0|LOG_INFO, "Login error %s from %s", msg ,http_request_get_ip_src(req)); free(msg); exit(0); } } else /* will serve a page */ { char *ipsrc = strdup(http_request_get_ip_src(req)); if ( wikilogin_getpermission( ipsrc ) ) /* serve the logoff & chg pwd page */ wiki_show_loginfo_page( res, ipsrc ); else /* serve the login page */ wiki_show_login_page( res ); } } else if (!strcmp(page, "NewAccount")) { /* serve the login page */ wiki_show_newaccount_page(res); } else if (!strcmp(page, "Changes")) { //grant permission to show changes (to protect {privacy}} data) if ( (autorized=wikilogin_getpermission(http_request_get_ip_src(req))) ) { if ( (page = http_request_param_get(req, "diff1")) ) wiki_show_diff_between_pages(res, page, 1); else if ( (page = http_request_param_get(req, "diff2")) ) wiki_show_diff_between_pages(res, page, 2); else wiki_show_changes_page(res); autorized=0; //return to a secure mode } else wiki_page_forbiden(res); //err msg and exit } else if (!strcmp(page, "ChangesRss")) { wiki_show_changes_page_rss(res); } else if (!strncmp(page, "Index", 5)) { int namesort = 0; if( *(page+5) == '2' ) namesort = 1; //Index2 : sort by name else default is date autorized=wikilogin_getpermission(http_request_get_ip_src(req)); //get permission to show html, image,file if ( (folder=http_request_param_get(req, "Folder")) ) wiki_show_index_page(res,folder,namesort,autorized); else wiki_show_index_page(res,".",namesort,autorized); } else if (!strcmp(page, "Search")) { wiki_show_search_results_page(res, http_request_param_get(req, "expr")); } else if (!strcmp(page, "Create")) /* unlogged user cannot create a new page! * Create a new page from an empty form * or creat a new page from a template. * If a selected template doesn't exit, it will be created. */ { /* check permission to create a page */ if ( (autorized=wikilogin_getpermission(http_request_get_ip_src(req))) ) { /* check the name of the page */ if ( (page=http_request_param_get(req, "title")) != NULL && page_name_is_good(page) ) { /* check if encrypt text*/ if ( (http_request_param_get(req, "encrypt")) != NULL && strcmp(http_request_param_get(req, "encrypt"),"yes") == 0 ) { wiki_show_edit_cryptedpage(res, wikitext, page, FALSE, autorized); } /* check if a template is selected */ else if ( (http_request_param_get(req, "template")) != NULL && strcmp(http_request_param_get(req, "template"),"none") != 0 ) { /* check the template exist */ if (access(http_request_param_get(req, "template"), R_OK) == 0 ) { /* check the page doesn't exist yet */ if (access(page, R_OK) != 0 ) { /* create page from template */ wikitext = file_read(http_request_param_get(req, "template")); page=http_request_param_get(req, "title"); wiki_show_edit_page(res, wikitext, page, FALSE, autorized); } else { /* Inform the user that the page exists*/ http_response_printf(res, "%s

    " "

    \n", msgList[27], "href='javascript:javascript:history.go(-1)'>Return to the previous page."); http_response_send(res); exit(0); } } else { /* template selected doesn't exit - Create the template and redirect */ wiki_redirect(res, http_request_param_get(req, "template")); } } else { /* No template selected - create page and redirect */ wiki_redirect(res, http_request_param_get(req, "title")); } } else { /* serve the create page form */ wiki_show_create_page(res); } } else wiki_page_forbiden(res); //err msg and exit } //end create page else { /* grant permission */ autorized=wikilogin_getpermission(http_request_get_ip_src(req)); if (access(page, R_OK) == 0) /* page exists */ { wikitext = file_read(page); /* log read page name and IP address */ syslog(LOG_LOCAL0|LOG_INFO, "page %s viewed from %s", page, http_request_get_ip_src(req)); } else private=0; //page doesn't exit yet,so no privacy that allows to save the new page /* Add entry for memo with checkbox, small dairy */ if ( !strcmp(command, "entry") ) { if ( http_request_param_get(req, "add") ) { value = http_request_param_get(req, "datafield"); //need the field of data char *newdata = http_request_param_get(req, "data"); //data to add wikitext = wiki_add_entry(page, newdata, value); //insert in the page file_write(page, wikitext); } else if ( http_request_param_get(req, "delete") ) { listbox = http_request_checkbox_get(req); wikitext = wiki_delete_entry(page, listbox, 0); file_write(page, wikitext); } else if ( http_request_param_get(req, "OKselect") ) { char *selectValue = http_request_param_get(req, "selectbox"); if ( !strcmp(selectValue, "delete") ) { listbox = http_request_checkbox_get(req); wikitext = wiki_delete_entry(page, listbox, 1); file_write(page, wikitext); } else if ( !strcmp(selectValue, "strike") ) { listbox = http_request_checkbox_get(req); wikitext = wiki_formating_entry(page, listbox, '-'); file_write(page, wikitext); } else if ( !strcmp(selectValue, "bold") ) { listbox = http_request_checkbox_get(req); wikitext = wiki_formating_entry(page, listbox, '*'); file_write(page, wikitext); } else if ( !strcmp(selectValue, "highlight") ) { listbox = http_request_checkbox_get(req); wikitext = wiki_formating_entry(page, listbox, '+'); file_write(page, wikitext); } else if ( !strcmp(selectValue, "mark") ) { listbox = http_request_checkbox_get(req); wikitext = wiki_formating_entry(page, listbox, '#'); file_write(page, wikitext); } else if ( !strcmp(selectValue, "unformat") ) { listbox = http_request_checkbox_get(req); wikitext = wiki_unformat_entry(page, listbox); file_write(page, wikitext); } } } /* Permission is required */ if ( !strcmp(command, "delete") ) { if (autorized) { if (http_request_param_get(req, "confirm")) { unlink(page); wiki_redirect(res, "WikiHome"); } else if (http_request_param_get(req, "cancel")) { wiki_redirect(res, page); } else { wiki_show_delete_confirm_page(res, page); } } else wiki_page_forbiden(res); //err msg and exit } /* To edit/create wiki page : Permission can be required */ else if ( !strcmp(command, "edit") || !strcmp(command, "create") ) { if (autorized || !private) { char *newtext = http_request_param_get(req, "wikitext"); if (http_request_param_get(req, "save") && newtext) { file_write(page, newtext); /* log modified page name and IP address */ syslog(LOG_LOCAL0|LOG_INFO, "page %s modified from %s", page ,http_request_get_ip_src(req)); wiki_redirect(res, page); } else if (http_request_param_get(req, "cancel")) { wiki_redirect(res, page); } if (http_request_param_get(req, "preview")) { wiki_show_edit_page(res, newtext, page, TRUE, TRUE); } else { wiki_show_edit_page(res, wikitext, page, FALSE, TRUE); } } else wiki_page_forbiden(res); //err msg and exit } /* To edit/create crypted page : Permission can be required */ else if ( !strcmp(command, "editcrypt") || !strcmp(command, "createcrypt") ) { if (autorized || !private) { char *newtext = http_request_param_get(req, "wikitext"); //? check wikitext? } else wiki_page_forbiden(res); //err msg and exit //crypto wiki_show_edit_cryptedpage(res, wikitext, page, FALSE, TRUE); } else /* there's no command : Show the existing page or create it if it doesn't exit */ { if (wikitext) /* page exist, so just show the page */ { /* private is used to prevent edit/delete */ private=wiki_show_page(res, wikitext, page, autorized); } else /* page doesn't exist, create it! */ { if ( autorized ) { char buf[1024]; snprintf(buf, sizeof(buf), "%s?create", page); wiki_redirect(res, buf); } else wiki_page_forbiden(res); //err msg and exit } } } } /////////////////////////////////////////////////////////////////////// /* 1st function called only for the startup: * ----------------------------------------- * create the folders, create the help and home pages, * erase the previous login granted */ ////////////////////////////////////////////////////////////////////// int wiki_init(char *ciwiki_home, unsigned restore_Wiki, unsigned create_htmlHome) { char datadir[512] = { 0 }; struct stat st; /* look where the pages are/will be located */ if (ciwiki_home) { /* datadir was passed as arg in the cmd line */ snprintf(datadir, 512, "%s", ciwiki_home); } else { if (getenv("CIWIKIHOME")) { /* datadir is passed in the environment */ snprintf(datadir, 512, "%s", getenv("CIWIKIHOME")); } else { /* default datadir */ if (getenv("HOME") == NULL) { fprintf(stderr, "Unable to get home directory, is HOME set?\n"); exit(1); } snprintf(datadir, 512, "%s/.ciwiki", getenv("HOME")); } } /* Check if datadir exists and create if not */ if (stat(datadir, &st) != 0 ) { if (mkdir(datadir, 0755) == -1) { fprintf(stderr, "Unable to create '%s', giving up.\n", datadir); exit(1); } } /* go to datadir */ if ( chdir(datadir) ) { errorcnt++; fprintf(stderr, "Unable to chdir: '%s'\n", datadir); } /* Check if datadir/images exists and create if not */ if (stat(PICSFOLDER, &st) != 0 ) { if (mkdir(PICSFOLDER, 0755) == -1) { fprintf(stderr, "Unable to create '%s', giving up.\n",PICSFOLDER); exit(1); } } /* Check if datadir/permissions exists and create if not */ if (stat(ACCESSFOLDER, &st) != 0 ) { if (mkdir(ACCESSFOLDER, 0755) == -1) { fprintf(stderr, "Unable to create '%s', giving up.\n",ACCESSFOLDER); exit(1); } } /* Check if datadir/configuration exists and create if not */ if (stat(CONFIGFOLDER, &st) != 0 ) { if (mkdir(CONFIGFOLDER, 0755) == -1) { fprintf(stderr, "Unable to create '%s', giving up.\n",CONFIGFOLDER); exit(1); } } /* Check if datadir/files exists and create if not */ if (stat(FILESFOLDER, &st) != 0 ) { if (mkdir(FILESFOLDER, 0755) == -1) { fprintf(stderr, "Unable to create '%s', giving up.\n",FILESFOLDER); exit(1); } } /* Check if datadir/html exists and create if not */ if (stat(HTMLFOLDER, &st) != 0 ) { if (mkdir(HTMLFOLDER, 0755) == -1) { fprintf(stderr, "Unable to create '%s', giving up.\n",HTMLFOLDER); exit(1); } } /* Check if datadir/scripts exists and create if not */ if (stat(SCRIPTSFOLDER, &st) != 0 ) { if (mkdir(SCRIPTSFOLDER, 0755) == -1) { fprintf(stderr, "Unable to create '%s', giving up.\n",SCRIPTSFOLDER); exit(1); } } /* Write Default Help, Home page and template 01 if they do not exist * or rewrite Default Help or Default Home page */ if ( access("WikiHelp", R_OK) != 0 || (restore_Wiki & 1) ) file_write("WikiHelp", HELPTEXT); if ( access("WikiHome", R_OK) != 0 || (restore_Wiki & 2) ) file_write("WikiHome", HOMETEXT); if ( access("01.template", R_OK) != 0 ) file_write("01.template", TEMPLATE01); if ( create_htmlHome ) file_write("WikiHome", HomeRedirect); /* Write Default styles.css, header, login forms... if they don't exist * or rewrite Defaults. */ if ( access(CONFIGFOLDER"/styles.css", R_OK) != 0 || (restore_Wiki & 4) ) file_write(CONFIGFOLDER"/styles.css", STYLESHEET); else /* Read in optional CSS data file*/ CssData = file_read(CONFIGFOLDER"/styles.css"); if ( access(CONFIGFOLDER"/EditHeader.htm", R_OK) != 0 || (restore_Wiki & 8) ) file_write(CONFIGFOLDER"/EditHeader.htm", EDITHEADER); else /* Read in optional html data file*/ EditHeader = file_read(CONFIGFOLDER"/EditHeader.htm"); if ( access(CONFIGFOLDER"/PageHeader.htm", R_OK) != 0 || (restore_Wiki & 8) ) file_write(CONFIGFOLDER"/PageHeader.htm", PAGEHEADER); else /* Read in optional html data file*/ PageHeader = file_read(CONFIGFOLDER"/PageHeader.htm"); if ( access(CONFIGFOLDER"/ShortHelp.htm", R_OK) != 0 || (restore_Wiki & 8) ) file_write(CONFIGFOLDER"/ShortHelp.htm", SHORTHELP); else /* Read in optional html data file*/ ShortHelp = file_read(CONFIGFOLDER"/ShortHelp.htm"); if ( access(CONFIGFOLDER"/LogInForm.htm", R_OK) != 0 || (restore_Wiki & 8) ) file_write(CONFIGFOLDER"/LogInForm.htm", LOGINFORM); else /* Read in optional html data file*/ LogInForm = file_read(CONFIGFOLDER"/LogInForm.htm"); if ( access(CONFIGFOLDER"/LogInForm2.htm", R_OK) != 0 || (restore_Wiki & 8) ) file_write(CONFIGFOLDER"/LogInForm2.htm", LOGINFORM2); else /* Read in optional html data file*/ LogInForm2 = file_read(CONFIGFOLDER"/LogInForm2.htm"); if ( access(CONFIGFOLDER"/NewLogInForm.htm", R_OK) != 0 || (restore_Wiki & 8) ) file_write(CONFIGFOLDER"/NewLogInForm.htm", NEWLOGINFORM); else /* Read in optional html data file*/ NewLogInForm = file_read(CONFIGFOLDER"/NewLogInForm.htm"); if ( access(CONFIGFOLDER"/LogInfo.htm", R_OK) != 0 || (restore_Wiki & 8) ) file_write(CONFIGFOLDER"/LogInfo.htm", LOGINFO); else /* Read in optional html data file*/ LogInfo = file_read(CONFIGFOLDER"/LogInfo.htm"); if ( access(CONFIGFOLDER"/CreateForm.htm", R_OK) != 0 || (restore_Wiki & 8) ) file_write(CONFIGFOLDER"/CreateForm.htm", CREATEFORM); else /* Read in optional html data file*/ CreateForm = file_read(CONFIGFOLDER"/CreateForm.htm"); if ( access(CONFIGFOLDER"/EditForm.htm", R_OK) != 0 || (restore_Wiki & 8) ) file_write(CONFIGFOLDER"/EditForm.htm", EDITFORM); else /* Read in optional html data file*/ EditForm = file_read(CONFIGFOLDER"/EditForm.htm"); if ( access(CONFIGFOLDER"/DeleteForm.htm", R_OK) != 0 || (restore_Wiki & 8) ) file_write(CONFIGFOLDER"/DeleteForm.htm", DELETEFORM); else /* Read in optional html data file*/ DeleteForm = file_read(CONFIGFOLDER"/DeleteForm.htm"); if ( access(CONFIGFOLDER"/HomeRedirect.htm", R_OK) != 0 || (restore_Wiki & 8) ) file_write(CONFIGFOLDER"/HomeRedirect.htm", HOMEREDIRECT); else /* Read in optional html data file*/ HomeRedirect = file_read(CONFIGFOLDER"/HomeRedirect.htm"); if ( access(CONFIGFOLDER"/Messages.txt", R_OK) != 0 || (restore_Wiki & 8) ) file_writeMsg(CONFIGFOLDER"/Messages.txt"); else /* Read in optional html data file*/ file_readMsg(CONFIGFOLDER"/Messages.txt"); /* use the Favicon as a png picture. */ if ( access(PICSFOLDER"/ciwiki.png", R_OK ) != 0) { FILE* fp; if ( (fp = fopen(PICSFOLDER"/ciwiki.png", "wb")) ) { unsigned char *picData = FaviconData; int picLen = FaviconDataLen; int bytes_written=0; while ( picLen > 0 ) { bytes_written = fwrite(picData, sizeof(char), picLen, fp); picLen = picLen - bytes_written; picData = picData + bytes_written; } fclose(fp); } else fprintf(stderr, "Unable to create '%s'\n",PICSFOLDER"/ciwiki.png"); } /* if favicon.ico file exist then load it else use the default favicon stored at the end of wikitext.h */ if ( access(".favicon.ico", R_OK ) == 0) { FILE* fp; int len; if ( (fp = fopen(".favicon.ico", "rb")) ) { /* get file size */ fseek (fp , 0 , SEEK_END); if ( ftell(fp) < FAVICONDATAMAX ) { rewind (fp); len = fread(FaviconData, 1,FAVICONDATAMAX, fp); if (len >= 0) FaviconData[len] = '\0'; FaviconDataLen=len; fprintf(stderr,"Favicon file is loaded %i bytes\n",len); } else fprintf(stderr,"Favicon file is too large!\n"); fclose(fp); } else fprintf(stderr,"Favicon file cannot open!\n"); } else fprintf(stderr,"Use internal ciwki favicon.\n"); /* Delete previous permission list */ remove(ACCESSFOLDER"/.session.txt"); return 1; } ./ciwiki-3.0.4/src/wikiashtml.c000777 001750 001750 00000123320 14273701153 020636 0ustar00jpredonnetjpredonnet000000 000000 /* * wikiashtml.c * * Copyright 2010-2015 Jean-Pierre Redonnet * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ /************************************************************************/ /* Here we translate the page in html and 'print' it. * The main function for this job is wiki_print_data_as_html() * HttpResponse *res contains the vars passed to the server. * char *raw_page_data contains the text to translate. * int autorized is TRUE if logged. * char *page is the page name. */ #include "ci.h" /* local variable */ int pic_width=0, pic_height=0, pic_border=0, pic_position=0; int expand_collapse_num=0; int target_wwwlink=0; static char * get_line_from_string(char **lines, int *line_len) { int i; char *z = *lines; if( z[0] == '\0' ) return NULL; for (i=0; z[i]; i++) { if (z[i] == '\n') { if (i > 0 && z[i-1]=='\r') { z[i-1] = '\0'; } else { z[i] = '\0'; } i++; break; } } /* advance lines on */ *lines = &z[i]; *line_len -= i; return z; } static char* check_for_link(char *line, int *skip_chars) { char *start = line; char *p = line; char *q; char *url = NULL; char *title = NULL; char *result = NULL; int found = 0; int w,h; int wwwlink; char border_pic_str[32]="",width_pic_str[32]="",height_pic_str[32]=""; char *position_pic_str, *new_tab_str; int lgasprintf = 0; if (*p == '[') /* [link] or [link title] or [image link] */ { /* XXX TODO XXX * Allow links like [the Main page] ( covert to the_main_page ) */ url = start+1; *p = '\0'; p++; while ( *p != ']' && *p != '\0' && !isspace(*p) ) p++; if (isspace(*p)) //there is a title or image { *p = '\0'; title = ++p; while ( *p != ']' && *p != '\0' ) //search closing braket p++; } *p = '\0'; p++; } else if ( !strncasecmp(p, "file=", 5) || !strncasecmp(p, "html=", 5)) /* file to download or html page to download*/ { int flag_html=0; if ( !strncasecmp(p, "html=", 5)) flag_html=1; q=p; start=p+5; //point after "file=" or "html=" while ( *p != '\0' && !isspace(*p) && *p != '|' ) p++; //point after end url if( p - start > 1024 ) { syslog(LOG_LOCAL0|LOG_INFO, "Error! Link size > 1024 chars!"); lgasprintf = asprintf(&result,"
    Link error!
    "); *skip_chars = p - start; return result; } url = malloc(sizeof(char) * ((p - start) + 2) ); //alloc mem to store url memset(url, 0, sizeof(char) * ((p - start) + 2)); strncpy(url, start, p - start); start=q; *start = '\0'; if ( flag_html ) { //it works but user will not able to edit the wiki page where redirect is used. Not a good idea! //redirect. is used in HOMEREDIRECT if ( !strncasecmp(url, "redirect.", 9)) lgasprintf = asprintf(&result,"",url+9); else lgasprintf= asprintf(&result,"
    %s",url,url); } else lgasprintf = asprintf(&result,"%s",url,url); *skip_chars = p - start; free(url); url = NULL; return result; } else if ( !strncasecmp(p, "youtube=", 8) ) /* youtube video embedded */ { q=p; start=p+8; while ( *p != '\0' && !isspace(*p) && *p != '|' ) p++; url = malloc(sizeof(char) * ((p - start) + 2) ); memset(url, 0, sizeof(char) * ((p - start) + 2)); strncpy(url, start, p - start); start=q; *start = '\0'; lgasprintf = asprintf(&result, "" "" "", url,url); *skip_chars = p - start; free(url); url = NULL; return result; } else if ( !strncasecmp(p, "dailymotion=", 12) ) /* dailymotion video embedded */ { q=p; start=p+12; while ( *p != '\0' && !isspace(*p) && *p != '|' ) p++; url = malloc(sizeof(char) * ((p - start) + 2) ); memset(url, 0, sizeof(char) * ((p - start) + 2)); strncpy(url, start, p - start); start=q; *start = '\0'; lgasprintf = asprintf(&result, "" "", url,url); *skip_chars = p - start; free(url); url = NULL; return result; } else if ( !strncasecmp(p, "vimeo=", 6) ) /* vimeo video embedded */ { q=p; start=p+6; while ( *p != '\0' && !isspace(*p) && *p != '|' ) p++; url = malloc(sizeof(char) * ((p - start) + 2) ); memset(url, 0, sizeof(char) * ((p - start) + 2)); strncpy(url, start, p - start); start=q; *start = '\0'; lgasprintf = asprintf(&result, "" "" "" "", url,url); *skip_chars = p - start; free(url); url = NULL; return result; } else if ( !strncasecmp(p, "veoh=", 5) ) /* veoh video embedded */ { q=p; start=p+5; while ( *p != '\0' && !isspace(*p) && *p != '|' ) p++; url = malloc(sizeof(char) * ((p - start) + 2) ); memset(url, 0, sizeof(char) * ((p - start) + 2)); strncpy(url, start, p - start); start=q; *start = '\0'; lgasprintf = asprintf(&result, "" "" "" "" "" "", url, url); *skip_chars = p - start; free(url); url = NULL; return result; } else if ( !strncasecmp(p, "flash=", 6) ) /* generic flash video embedded */ { q=p; start=p+6; if ( pic_width > 100) w=pic_width; else w=320; if ( pic_height > 100) h=pic_height; else h=240; while ( *p != '\0' && !isspace(*p) && *p != '|' ) p++; url = malloc(sizeof(char) * ((p - start) + 2) ); memset(url, 0, sizeof(char) * ((p - start) + 2)); strncpy(url, start, p - start); start=q; *start = '\0'; lgasprintf = asprintf(&result, "" "", url, w, h, url); *skip_chars = p - start; free(url); url = NULL; return result; } else if ( !strncasecmp(p, "swf=", 4) ) /* swf flash animation embedded */ { q=p; start=p+4; if ( pic_width > 100) w=pic_width; else w=320; if ( pic_height > 100) h=pic_height; else h=240; while ( *p != '\0' && !isspace(*p) && *p != '|' ) p++; url = malloc(sizeof(char) * ((p - start) + 2) ); memset(url, 0, sizeof(char) * ((p - start) + 2)); strncpy(url, start, p - start); start=q; *start = '\0'; lgasprintf = asprintf(&result, "", url, w, h); *skip_chars = p - start; free(url); url = NULL; return result; } else if (!strncasecmp(p, "http://", 7) || !strncasecmp(p, "https://", 8) || !strncasecmp(p, "mailto://", 9) || !strncasecmp(p, "file://", 7)) /* external link */ { while ( *p != '\0' && !isspace(*p) ) p++; found = 1; } else if (isupper(*p)) /* Camel-case */ { int num_upper_char = 1; p++; while ( *p != '\0' && isalnum(*p) ) { if (isupper(*p)) { found = 1; num_upper_char++; } p++; } if (num_upper_char == (p-start)) /* Dont make ALLCAPS links */ return NULL; } if (found) /* cant really set http/camel links in place */ { url = malloc(sizeof(char) * ((p - start) + 2) ); memset(url, 0, sizeof(char) * ((p - start) + 2)); strncpy(url, start, p - start); *start = '\0'; } if (url != NULL) { int len = strlen(url); *skip_chars = p - start; /* url is an image (look at the file extension) ? */ if ( !strncasecmp(url+len-4, ".gif", 4) || !strncasecmp(url+len-4, ".png", 4) || !strncasecmp(url+len-4, ".jpg", 4) || !strncasecmp(url+len-5, ".jpeg", 5) ) { if (pic_width) sprintf(width_pic_str," width=\"%i\"",pic_width); else width_pic_str[0]='\0'; if (pic_height) sprintf(height_pic_str," height=\"%i\"",pic_height); else height_pic_str[0]='\0'; if (pic_border) sprintf(border_pic_str," border=\"%i\"",pic_border); else border_pic_str[0]='\0'; if (pic_position==1) position_pic_str=" style='float:left'"; else if (pic_position==2) position_pic_str=" style='float:right'"; else if (pic_position==0) position_pic_str=""; if (target_wwwlink) new_tab_str=" target='_blank'"; else new_tab_str=""; /* Need to add path ? */ if ( (strncasecmp(url,"http",4) != 0) && (strstr(url,"images/")==0) != 0 ) { /* print the link to the image , add the path to the image folder */ if (title) // case: [image link] lgasprintf = asprintf(&result, "", title, new_tab_str, PICSFOLDER, url, border_pic_str, width_pic_str, height_pic_str, position_pic_str); else // case: http://link_to_image lgasprintf = asprintf(&result, "", PICSFOLDER, url, border_pic_str, width_pic_str, height_pic_str, position_pic_str); } else { /* print the link to the image */ if (title) // case: [image link] lgasprintf = asprintf(&result, "", title, new_tab_str, url, border_pic_str, width_pic_str, height_pic_str, position_pic_str); else // case: http://link_to_image lgasprintf = asprintf(&result, "", url, border_pic_str, width_pic_str, height_pic_str, position_pic_str); } } else // url or title does'nt link to an image { char *extra_attr = ""; wwwlink=0; if (!strncasecmp(url, "http://", 7) || !strncasecmp(url, "https://", 8)) { extra_attr = " title='WWW link' "; wwwlink=1; } if (target_wwwlink && wwwlink) new_tab_str=" target='_blank'"; else new_tab_str=""; if (title) lgasprintf = asprintf(&result,"%s", extra_attr, url, new_tab_str, title); else lgasprintf = asprintf(&result, "%s", extra_attr, url, new_tab_str, url); } if (found) { free(url); url = NULL; } return result; } return NULL; } static int is_wiki_format_char_or_space(char c) { if (isspace(c)) return 1; if (strchr("/*_-", c)) return 1; return 0; } /* picture size & position */ void wiki_parse_between_braces(char *s) { char *str_ptr; if ( (str_ptr=strstr(s,"width=")) != NULL ) { str_ptr+=6; pic_width=atoi(str_ptr); } //else pic_width=0; if ( (str_ptr=strstr(s,"height=")) != NULL ) { str_ptr+=7; pic_height=atoi(str_ptr); } //else pic_height=0; if ( (str_ptr=strstr(s,"border=")) != NULL ) { str_ptr+=7; pic_border=atoi(str_ptr); } //else pic_border=0; if ( (str_ptr=strstr(s,"left")) != NULL ) pic_position=1; else if ( (str_ptr=strstr(s,"right")) != NULL ) pic_position=2; else pic_position=0; if ( strstr(s,"default") != NULL ) { pic_width=0; pic_height=0; pic_border=0; pic_position=0; } if ( strstr(s,"wwwlink=new_tab") != NULL ) target_wwwlink=1; else if ( strstr(s,"wwwlink=current_tab") != NULL ) target_wwwlink=0; } void search_header(char **sectionlist,char *raw_page_data) /* create a list of header, will be used by {{toc}} */ { int header = 0; int i = 0; char *p = raw_page_data; int lg = 1000; *sectionlist = malloc(lg); //we can need to realloc more while ( *p != '\0' ) { /* header is '=' at the beginning of the line */ if ( *p == '=' && ( p == raw_page_data || *(p-1) == '\n' || *(p-1) == '\r' ) ) { /* get chars until eol */ while (*p != '\0' && *p != '\n' && *p != '\r' ) { if (i > lg-3) { lg+= 1000; *sectionlist = realloc(*sectionlist, lg); } (*sectionlist)[i++] = *p; p++; } (*sectionlist)[i++] = '\n'; header++; } else p++; } (*sectionlist)[i] = '\0'; return; } int wiki_print_data_as_html( HttpResponse *res, char *raw_page_data, int autorized, char *page) { #define ULIST 0 #define OLIST 1 #define NUM_LIST_TYPES 2 #define LABEL_SIZE 80 char *p = raw_page_data; /* accumulates non marked up text */ char *q = NULL, *link = NULL; /* temporary scratch stuff */ char *line = NULL; int line_len; int i, j, k, skip_chars; char color_str[64]; char label[LABEL_SIZE]; char *str_ptr; char *sectionlist; int section = 0; /* flags, mainly for open tag states */ int color_on = 0; int bgcolor_on = 0; int code_on = 0; int highlight_on = 0; int bold_on = 0; int italic_on = 0; int underline_on = 0; int strikethrough_on = 0; int open_para = 0; int pre_on = 0; int table_on = 0; int form_on = 0; int form_cnt = 0; int num = 0; int state = 0; char color_k,color_prev='\0'; char bgcolor_k,bgcolor_prev='\0'; int private; //flag 1 if access denied struct { char ident; int depth; char *tag; } listtypes[] = { { '*', 0, "ul" }, { '#', 0, "ol" } }; char date[80]=""; time_t now; struct tm *timeinfo; (void) time(&now); timeinfo = localtime(&now); search_header( §ionlist, raw_page_data); q = p; /* p accumulates non marked up text, q is just a pointer * to the end of the current line - used by below func. */ private=0; while ( (line = get_line_from_string(&q, &line_len)) && !private) { int header_level = 0; int blockquote_flag = 0; char *line_start = line; int skip_to_content = 0; /* * process any initial wiki chars at line beginning */ if (pre_on && !isspace(*line) && *line != '\0') { /* close any preformatting if already on*/ http_response_printf(res, "\n") ; pre_on = 0; } /* Handle ordered & unordered list, code is a bit mental.. */ for (i=0; i\n", listtypes[!i].tag); listtypes[!i].depth = 0; } while ( *line == listtypes[i].ident ) { line++; item_depth++; } if (item_depth < listtypes[i].depth) { for (j = 0; j < (listtypes[i].depth - item_depth); j++) http_response_printf(res, "\n", listtypes[i].tag); } else { for (j = 0; j < (item_depth - listtypes[i].depth); j++) http_response_printf(res, "<%s>\n", listtypes[i].tag); } http_response_printf(res, "
  • "); listtypes[i].depth = item_depth; skip_to_content = 1; } else if (listtypes[i].depth && !listtypes[!i].depth) { /* close current list */ for (j=0; j\n", listtypes[i].tag); listtypes[i].depth = 0; } } if (skip_to_content) goto line_content; /* skip parsing any more initial chars */ /* Tables */ if (*line == '|') { if (table_on==0) http_response_printf(res, "\n"); line++; http_response_printf(res, "
    "); table_on = 1; goto line_content; } else { if(table_on) { http_response_printf(res, "
    \n"); table_on = 0; } } /* pre formated */ if ( (isspace(*line) || *line == '\0')) { int n_spaces = 0; while ( isspace(*line) ) { line++; n_spaces++; } if (*line == '\0') /* empty line - para */ { if (pre_on) { http_response_printf(res, "\n") ; continue; } else if (open_para) { http_response_printf(res, "\n

    \n") ; } else { http_response_printf(res, "\n

    \n") ; open_para = 1; } } else /* starts with space so Pre formatted, see above for close */ { if (!pre_on) http_response_printf(res, "

    \n") ;
            pre_on = 1;
            line = line - ( n_spaces - 1 ); /* rewind so extra spaces
                                                     they matter to pre */
            http_response_printf(res, "%s\n", line);
            continue;
          }
        }
        else if ( *line == '=' ) //header
        {
          section++;
          while (*line == '=')
            { header_level++; line++; }
          http_response_printf(res, "", header_level, section);
          p = line;
        }
        else if ( *line == '-' && *(line+1) == '-' ) //rule
        {
          http_response_printf(res, "
    \n"); while ( *line == '-' ) line++; } else if ( *line == '\'' ) //quote { blockquote_flag=1; line++; http_response_printf(res, "
    \n"); } line_content: /* * now process rest of the line */ p = line; while ( *line != '\0' ) { /* ignore link */ if ( *line == '!' && !isspace(*(line+1))) { /* escape next word - skip it */ *line = '\0'; http_response_printf(res, "%s", p); p = ++line; while (*line != '\0' && !isspace(*line)) line++; if (*line == '\0') continue; } /* search for link inside the line */ else if ((link = check_for_link(line, &skip_chars)) != NULL) { http_response_printf(res, "%s", p); http_response_printf(res, "%s", link); line += skip_chars; p = line; continue; } /* TODO: Below is getting bloated and messy, need rewriting more * compactly ( and efficently ). */ else if (*line == '{' && *(line+1) == '{') /* Proceed double braces : {{cmd}} */ { if (line_start != line && !is_wiki_format_char_or_space(*(line-1))) { line=line+2; continue; } /* search closing braces */ k=2; while (*(line+k) != '}') { if ( *(line+k) == '\0' ) { line=line+2; continue; } k++; } k++; if (*(line+k) == '}') *(line+k)='\0'; //terminate the line else { line=line+2; continue; } /* Parse tags between double braces */ // need to be rewritten /* search image/video size */ wiki_parse_between_braces(line+2); /* control access */ if ( (strstr(line+2,"private")) ) { if ( !autorized ) { http_response_printf(res, "

    --- Sorry, the access below is denied ----

    \n"); *p = '\0'; private=1; //will stop getting line break; //terminate the while loop } } /* Expand */ if ( (str_ptr=strstr(line+2,"expand")) ) { if ( *(str_ptr-1) == '-' ) //terminate expand { http_response_printf(res,"\n"); } else { /* search label */ if ( *(str_ptr+6) == '=' ) { i=0; str_ptr+=7; while ( (*str_ptr != '}' && *str_ptr != '\0') && i < LABEL_SIZE) { label[i]=*str_ptr; str_ptr++; i++; } label[i]='\0'; } else strcpy(label,"Click here!"); expand_collapse_num++; //Note: use javascript function expandcollapse() http_response_printf(res, "
    " "

    " "%s" "

    " "
    ", expand_collapse_num,label,expand_collapse_num); } } /* Collapse */ else if ( (str_ptr=strstr(line+2,"collapse")) ) { if ( *(str_ptr-1) == '-' ) //terminate expand { http_response_printf(res,"
    \n"); } else { /* search label */ if ( *(str_ptr+8) == '=' ) { i=0; str_ptr+=9; while ( (*str_ptr != '}' && *str_ptr != '\0') && i < LABEL_SIZE) { label[i]=*str_ptr; str_ptr++; i++; } label[i]='\0'; } else strcpy(label,"Click here!"); expand_collapse_num++; //Note: use javascript function expandcollapse() http_response_printf(res, "
    " "

    " "%s" "

    " "
    ", expand_collapse_num,label,expand_collapse_num); } } /* Upload a file */ if ( (strstr(line+2,"upload")) ) { http_response_printf(res, "

    " "
    " "

    " "

    \n"); } /* table of contents */ if ( strstr(line+2,"toc") ) { int sectioncnt=0; while ( (str_ptr=strchr(sectionlist,'\n')) ) { *str_ptr='\0'; sectioncnt++; /* header level */ int item_depth = 0; while ( *sectionlist == '=' ) { sectionlist++; item_depth++; } /* indent */ for (j = 0; j < item_depth; j++) http_response_printf(res, "
      "); /* skip first ! */ if ( *sectionlist == '!' ) sectionlist++; http_response_printf(res, "
    • %s
    • ", sectioncnt, sectionlist); /* reset indentation */ for (j=0; j\n"); item_depth = 0; /* point to the next header */ sectionlist = str_ptr+1; } } /* entry */ if ( (str_ptr=strstr(line+2,"entry")) ) { str_ptr += 5; /* close form already opened */ if (form_on) http_response_printf(res, "\n"); form_on=1; //so we know we will have to close
      form_cnt++; //for datafield http_response_printf(res, "\n",page); int size=30; //default entry size if ( *(str_ptr) ) { if ( (strstr(str_ptr,"tiny")) ) size=10; else if ( (strstr(str_ptr,"small")) ) size=20; else if ( (strstr(str_ptr,"medium")) ) size=40; else if ( (strstr(str_ptr,"large")) ) size=60; else if ( (strstr(str_ptr,"huge")) ) size=80; else if ( (strstr(str_ptr,"area")) ) size=0; //will use textarea date[0]='\0'; if ( strstr(str_ptr,"date2") ) { strftime(date, 80, "%a, %x ", timeinfo); str_ptr += 5; } else if ( strstr(str_ptr,"date") ) { strftime(date, 80, "%a %b %d, %G %H:%M ", timeinfo); str_ptr += 4; } } /* hidden datafield gives the {{data#}} to use */ if( size ) http_response_printf(res, "

      " "

      " "" "

      " "

      \n", date, size, form_cnt); else http_response_printf(res, "

      " "

      " "" "

      " "

      \n", date, form_cnt); } /* Simple checkbox */ if ( (str_ptr=strstr(line+2,"checkbox")) ) { num=state=0; if (*(str_ptr+8) == '=') num=atol(str_ptr+9); if ( (str_ptr=strchr(str_ptr+9,';')) ) state=atoi(str_ptr+1); /* little trick: checkbox unchecked is not posted * the input hidden returns the value 0 * we have the values: 0 , 1 when checked * and 0 when unchecked. browser must operate sequentially! */ http_response_printf(res, "" " ", num,num,state ? "checked='checked'":""); } /* Delete field */ if ( (strstr(line+2,"delete")) ) //to remove! { http_response_printf(res, "\n"); } /* select various actions (formating, delete) */ if ( (strstr(line+2,"select")) ) { http_response_printf(res, "\n" "\n" ); } /* Display a text when Scheduled date == System date * the format is {{Schedule=date;text if true;text if false}} * date format is * example: Monday January 16 * */ if ( (str_ptr=strstr(line+2,"schedule")) ) { /* Extract the date */ if ( *(str_ptr+8) == '=' ) { i=0; str_ptr+=9; while ( (*str_ptr != ';' && *str_ptr != '}' && *str_ptr != '\0') && i < LABEL_SIZE) { label[i]=*str_ptr; str_ptr++; i++; } label[i]='\0'; } if (*str_ptr == ';') //date must be terminated by a semicolon { str_ptr++; /* Format the current date "Day of the week" "Month" "day of the month"*/ strftime(date, 80, "%A %B %d", timeinfo); if (strstr(date,label)) { i=0; while ( (*str_ptr != ';' && *str_ptr != '}' && *str_ptr != '\0') && i < LABEL_SIZE) { label[i]=*str_ptr; str_ptr++; i++; } label[i]='\0'; /* The content of the label is copied and will be proceeded as text*/ line+=k-strlen(label); *line=' '; strcpy(line+1,label); //label length < k so strcpy is safe goto line_content; //proceed again the line } else { while ( (*str_ptr != ';' && *str_ptr != '}' && *str_ptr != '\0') && i < LABEL_SIZE) str_ptr++; if (*str_ptr == ';') { str_ptr++; i=0; while ( (*str_ptr != ';' && *str_ptr != '}' && *str_ptr != '\0') && i < LABEL_SIZE) { label[i]=*str_ptr; str_ptr++; i++; } label[i]='\0'; /* The content of the label is copied and will be proceeded as text*/ line+=k-strlen(label); *line=' '; strcpy(line+1,label); goto line_content; //proceed again the line } } } //end if ';' else { /* no semicolon, so we suppose the user wants to test a date * format: d/m/n * d is an interger = 0...6 (Sunday...Saturday) * m is an interger = 1...12 (January...December) * n is an integer = 1...31 */ int val; val=atoi(label); if(val<0) val=0; if(val>6) val=6; timeinfo->tm_wday=val; i=0; while(i12) val=12; timeinfo->tm_mon=val-1; while(i31) val=31; timeinfo->tm_mday=val; strftime(date, 80, "%A %B %d", timeinfo); http_response_printf(res, "

      Temporary date is %s

      \n",date); } } // end schedule routine /* Add new {{cmd}} below if needed */ /* ... */ line+= k; //point to '\0' (the last closing brace) p= line+1; //point just after '\0' } //end of the double braces routine /* single brace : text or background color */ else if (*line == '{' && *(line+1) != '{' ) //exclude double braces { if(strchr("RGBYMCD",*(line+1)) && *(line+2) == '}') { /* Text color */ if (line_start != line && !is_wiki_format_char_or_space(*(line-1)) && !color_on) { line++; continue; } if ((isspace(*(line+3)) && !color_on)) { line++; continue; } /* select color */ *line = '\0'; color_k = *(line+1); switch( color_k ) { case 'R': //red strcpy(color_str,""); break; case 'G': //green strcpy(color_str,""); break; case 'B': //blue strcpy(color_str,""); break; case 'Y': //yellow strcpy(color_str,""); break; case 'M': //magenta strcpy(color_str,""); break; case 'C': //cyan strcpy(color_str,""); break; case 'D': //dark (black) strcpy(color_str,""); break; } if (color_prev && color_k != color_prev) { color_on = 0; /* reset flag */ http_response_printf(res, "%s","\n"); } color_prev = color_k; http_response_printf(res, "%s%s\n", p, color_on ? "" : color_str); color_on ^= 1; /* switch flag */ p = line+3; } else if (*line == '{' && strchr("rgbymcd",*(line+1)) && *(line+2) =='}' ) { /* bgcolor */ if (line_start != line && !is_wiki_format_char_or_space(*(line-1)) && !bgcolor_on) { line++; continue; } if ((isspace(*(line+3)) && !bgcolor_on)) { line++; continue; } /* select color */ *line = '\0'; bgcolor_k = *(line+1); switch( bgcolor_k ) { case 'r': strcpy(color_str,""); break; case 'g': strcpy(color_str,""); break; case 'b': strcpy(color_str,""); break; case 'y': strcpy(color_str,""); break; case 'm': strcpy(color_str,""); break; case 'c': strcpy(color_str,""); break; } if (bgcolor_prev && bgcolor_k != bgcolor_prev) { bgcolor_on = 0; /* reset flag */ http_response_printf(res, "%s","\n"); } bgcolor_prev = bgcolor_k; http_response_printf(res, "%s%s\n", p, bgcolor_on ? "" : color_str); bgcolor_on ^= 1; /* switch flag */ p = line+3; } } //end single brace routine else if (*line == '`') { /* code */ if (line_start != line && !is_wiki_format_char_or_space(*(line-1)) && !code_on) { line++; continue; } if ((isspace(*(line+1)) && !code_on)) { line++; continue; } *line = '\0'; http_response_printf(res, "%s%s\n", p, code_on ? "" : ""); code_on ^= 1; /* switch flag */ p = line+1; } else if (*line == '+') { /* highlight */ if (line_start != line && !is_wiki_format_char_or_space(*(line-1)) && !highlight_on) { line++; continue; } if ((isspace(*(line+1)) && !highlight_on)) { line++; continue; } *line = '\0'; http_response_printf(res, "%s%s\n", p, highlight_on ? "" : ""); highlight_on ^= 1; /* switch flag */ p = line+1; } else if (*line == '*') { /* Try and be smart about what gets bolded */ if (line_start != line && !is_wiki_format_char_or_space(*(line-1)) && !bold_on) { line++; continue; } if ((isspace(*(line+1)) && !bold_on)) { line++; continue; } /* bold */ *line = '\0'; http_response_printf(res, "%s%s\n", p, bold_on ? "" : ""); bold_on ^= 1; /* reset flag */ p = line+1; } else if (*line == '_' ) { if (line_start != line && !is_wiki_format_char_or_space(*(line-1)) && !underline_on) { line++; continue; } if (isspace(*(line+1)) && !underline_on) { line++; continue; } /* underline */ *line = '\0'; http_response_printf(res, "%s%s\n", p, underline_on ? "" : ""); underline_on ^= 1; /* reset flag */ p = line+1; } else if (*line == '-') { if (line_start != line && !is_wiki_format_char_or_space(*(line-1)) && !strikethrough_on) { line++; continue; } if (isspace(*(line+1)) && !strikethrough_on) { line++; continue; } /* strikethrough */ *line = '\0'; http_response_printf(res, "%s%s\n", p, strikethrough_on ? "" : ""); strikethrough_on ^= 1; /* reset flag */ p = line+1; } else if (*line == '/' ) { if (line_start != line && !is_wiki_format_char_or_space(*(line-1)) && !italic_on) { line++; continue; } if (isspace(*(line+1)) && !italic_on) { line++; continue; } /* crude path detection */ if (line_start != line && isspace(*(line-1)) && !italic_on) { char *tmp = line+1; int slashes = 0; /* Hack to escape out file paths */ while (*tmp != '\0' && !isspace(*tmp)) { if (*tmp == '/') slashes++; tmp++; } if (slashes > 1 || (slashes == 1 && *(tmp-1) != '/')) { line = tmp; continue; } } if (*(line+1) == '/') line++; /* escape out common '//' - eg urls */ else { /* italic */ *line = '\0'; http_response_printf(res, "%s%s\n", p, italic_on ? "" : ""); italic_on ^= 1; /* reset flag */ p = line+1; } } else if (*line == '|' && table_on) /* table column */ { *line = '\0'; http_response_printf(res, "%s", p); http_response_printf(res, "\n"); p = line+1; } line++; } /* end while ( *line != '\0' ) */ if (*p != '\0') /* accumulated text left over */ http_response_printf(res, "%s", p); /* close any html tags that could be still open */ if (listtypes[ULIST].depth) http_response_printf(res, ""); if (listtypes[OLIST].depth) http_response_printf(res, ""); if (table_on) http_response_printf(res, "\n"); if (header_level) http_response_printf(res, "\n", header_level); else if (blockquote_flag) http_response_printf(res, "
    \n"); else http_response_printf(res, "\n"); } /* next line */ /*** clean up anything thats still open ***/ if (pre_on) http_response_printf(res, "
    \n"); /* close any open lists */ for (i=0; i\n"); for (i=0; i\n"); /* close any open paras */ if (open_para) http_response_printf(res, "

    \n"); /* close table */ if (table_on) http_response_printf(res, "\n"); /* close form */ if (form_on) http_response_printf(res, "\n"); return private; } ./ciwiki-3.0.4/src/wikientries.h000777 001750 001750 00000000611 14273425465 021032 0ustar00jpredonnetjpredonnet000000 000000 #ifndef _HAVE_WIKIENTRIES_HEADER #define _HAVE_WIKIENTRIES_HEADER char *wiki_add_entry(char *filename, char *entry, char *form_nb); char *wiki_delete_entry(char *filename, char *list, int ifmarked); char *wiki_formating_entry(char *filename, char *list, char formating); char *wiki_unformat_entry(char *filename, char *list); char *wiki_set_checkbox(char *filename, char *list) ; #endif ./ciwiki-3.0.4/src/wikichanges.c000777 001750 001750 00000014671 14270716076 020775 0ustar00jpredonnetjpredonnet000000 000000 /* * Jean-Pierre Redonnet inphilly@gmail.com * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ /* Note: * * */ #include "ci.h" #include "wiki.h" //#include "wikitext.h" void wiki_show_changes_page(HttpResponse *res) { WikiPageList **pages = NULL; int n_pages, i,j,m,lg; char spacing[24]; char *difflink; int *table, *done; //alloc mem with n_pages char *str_ptr; wiki_show_header(res, "Changes", FALSE, 0); pages = wiki_get_pages(&n_pages, NULL, 0); table = malloc((1+n_pages)*sizeof(int)); done = malloc((1+n_pages)*sizeof(int)); /* regroup file and previous file */ for (i=0; iname,".prev.1")) { for (j=0; jname,pages[i]->name)) && !strcmp(str_ptr+strlen(pages[i]->name),".prev.1") ) { table[m++]=i; table[m++]=j; done[i]=1; done[j]=1; break; } } /* complete with new files */ for (i=0; iname,".prev.1") ) { strcpy(spacing,"  "); lg=asprintf(&difflink, "diff\n" "comp\n", pages[i]->name,pages[i]->name); if (lg==-1) exit(1); //error } else { *spacing='\0'; difflink=strdup("\0"); } pTm = localtime(&pages[i]->mtime); strftime(datebuf, sizeof(datebuf), "%Y-%m-%d %H:%M", pTm); http_response_printf(res, "%s%s %s %s
    \n", spacing, pages[i]->name, pages[i]->name, datebuf, difflink); } http_response_printf(res, "

    Wiki changes are also available as a " "RSS feed.\n"); wiki_show_footer(res); http_response_send(res); free(table); free(done); exit(0); } /* Use cmd "diff" */ void wiki_show_diff_between_pages(HttpResponse *res, char *page, int mode) { FILE *fp; char line[128]; char *str_ptr; char *cmd; int val1,val2,nbln=1,lg; char buffer[128]; char action; if (!page) exit(0); char *current = strdup(page); *strstr(current,".prev")='\0'; fp=fopen(page,"r"); lg = asprintf(&cmd,"diff -abB %s %s",page,current); if (lg==1) exit(1); //error wiki_show_header(res, "Changes", FALSE, 0); FILE* pipe = popen(cmd, "r"); if (!pipe) exit(0); http_response_printf(res, "

    Current page: %s

    \n",current); while(!feof(pipe)) { if(fgets(buffer, 128, pipe) != NULL) { /* Analyze results returned by diff */ if ( strchr("<>=",buffer[0]) ) http_response_printf(res, "%s%s
    \n", buffer[0]=='>'?"New:":"",&buffer[1]); else if ( (str_ptr=strpbrk(buffer,"acd")) ) { action=*str_ptr; *str_ptr='\0'; val1=atoi(buffer); if ( (str_ptr=strchr(buffer,',')) ) val2=atoi(str_ptr+1); else val2=val1; if (mode == 2) { /* Show previous page markup */ while (nbln < val2) { if ( !fgets(line,128,fp) ) exit(0); http_response_printf(res, "%i:%s
    \n",nbln,line); nbln++; } } /* Explain change */ switch ( action ) { case 'd': http_response_printf(res, "Deleted line %i-%i:
    \n",val1,val2); break; case 'a': http_response_printf(res, "Added line %i-%i:
    \n",val1,val2); break; case 'c': http_response_printf(res, "Changed line %i-%i:
    \n",val1,val2); break; } } } } if (mode == 2) { while ( fgets(line,128,fp) ) { http_response_printf(res, "%i:%s
    \n",nbln,line); nbln++; } } pclose(pipe); fclose(fp); wiki_show_footer(res); http_response_send(res); exit(0); } void wiki_show_changes_page_rss(HttpResponse *res) { WikiPageList **pages = NULL; int n_pages, i; /*char *html_clean_wikitext = NULL; char *wikitext; */ pages = wiki_get_pages(&n_pages, NULL, 0); http_response_set_content_type(res, "application/xhtml+xml"); http_response_printf(res, "\n" "\n" "CiWiki Changes feed\n"); for (i=0; imtime); strftime(datebuf, sizeof(datebuf), "%Y-%m-%d %H:%M", pTm); http_response_printf(res, "%s" "%s%s" "Modified %s\n", pages[i]->name, getenv("CIWIKI_URL_PREFIX") ? getenv("CIWIKI_URL_PREFIX") : "", pages[i]->name, datebuf); /* wikitext = file_read(pages[i]->name); http_response_printf_alloc_buffer(res, strlen(wikitext)*2); html_clean_wikitext = util_htmlize(wikitext, strlen(wikitext)); wiki_print_data_as_html(res, html_clean_wikitext); */ http_response_printf(res, "\n"); } //end for http_response_printf(res, "\n"); http_response_send(res); exit(0); } ./ciwiki-3.0.4/src/Makefile.in000664 001750 001750 00000045525 14274674000 020371 0ustar00jpredonnetjpredonnet000000 000000 # Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : bin_PROGRAMS = ciwiki$(EXEEXT) subdir = src ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am_ciwiki_OBJECTS = ci.$(OBJEXT) http.$(OBJEXT) util.$(OBJEXT) \ wiki.$(OBJEXT) wikilogin.$(OBJEXT) wikichanges.$(OBJEXT) \ wikiashtml.$(OBJEXT) wikientries.$(OBJEXT) ciwiki_OBJECTS = $(am_ciwiki_OBJECTS) ciwiki_LDADD = $(LDADD) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/ci.Po ./$(DEPDIR)/http.Po \ ./$(DEPDIR)/util.Po ./$(DEPDIR)/wiki.Po \ ./$(DEPDIR)/wikiashtml.Po ./$(DEPDIR)/wikichanges.Po \ ./$(DEPDIR)/wikientries.Po ./$(DEPDIR)/wikilogin.Po am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(ciwiki_SOURCES) DIST_SOURCES = $(ciwiki_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GCC_FLAGS = @GCC_FLAGS@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ PREFIXDIR = $(prefix) PKGDATADIR = $(datadir)/matchbox DATADIR = $(datadir) AM_CFLAGS = $(GCC_FLAGS) INCLUDES = -DDATADIR=\"$(DATADIR)\" -DPKGDATADIR=\"$(PKGDATADIR)\" -DPREFIX=\"$(PREFIXDIR)\" ciwiki_SOURCES = ci.c ci.h http.c http.h \ util.c util.h wiki.c wiki.h \ wikilogin.c wikilogin.h wikitext.h \ wikichanges.c wikichanges.h \ wikiashtml.c wikiashtml.h \ wikientries.c wikientries.h all: all-am .SUFFIXES: .SUFFIXES: .c .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) ciwiki$(EXEEXT): $(ciwiki_OBJECTS) $(ciwiki_DEPENDENCIES) $(EXTRA_ciwiki_DEPENDENCIES) @rm -f ciwiki$(EXEEXT) $(AM_V_CCLD)$(LINK) $(ciwiki_OBJECTS) $(ciwiki_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ci.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/http.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/util.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wiki.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wikiashtml.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wikichanges.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wikientries.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wikilogin.Po@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/ci.Po -rm -f ./$(DEPDIR)/http.Po -rm -f ./$(DEPDIR)/util.Po -rm -f ./$(DEPDIR)/wiki.Po -rm -f ./$(DEPDIR)/wikiashtml.Po -rm -f ./$(DEPDIR)/wikichanges.Po -rm -f ./$(DEPDIR)/wikientries.Po -rm -f ./$(DEPDIR)/wikilogin.Po -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/ci.Po -rm -f ./$(DEPDIR)/http.Po -rm -f ./$(DEPDIR)/util.Po -rm -f ./$(DEPDIR)/wiki.Po -rm -f ./$(DEPDIR)/wikiashtml.Po -rm -f ./$(DEPDIR)/wikichanges.Po -rm -f ./$(DEPDIR)/wikientries.Po -rm -f ./$(DEPDIR)/wikilogin.Po -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-binPROGRAMS clean-generic cscopelist-am ctags ctags-am \ distclean distclean-compile distclean-generic distclean-tags \ distdir dvi dvi-am html html-am info info-am install \ install-am install-binPROGRAMS install-data install-data-am \ install-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \ ps ps-am tags tags-am uninstall uninstall-am \ uninstall-binPROGRAMS .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ./ciwiki-3.0.4/src/wikientries.c000777 001750 001750 00000030512 14273430267 021024 0ustar00jpredonnetjpredonnet000000 000000 /* * wikiform.c * * Copyright 2010 jpr * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ /*********************************************************************/ /* Here we modify the page (raw text) in order to insert an entry or * to delete an entry in the page. */ #include "ci.h" /* need to be improved: Not strict enough! */ char *wiki_add_entry(char *filename, char *entry, char *form_nb) { struct stat st; FILE* fp; char* str; char* result; char* str_ptr; char* str_ptr0; char* str_ptr1; char tag[255]; int len,lg; int form_nb_int = atoi(form_nb); /* Get the file size. */ if (stat(filename, &st)) return NULL; /* file exist? */ if (!(fp = fopen(filename, "rb"))) return NULL; time_t now; (void) time(&now); char* pt = entry; /* replace /n with space */ while( *pt != '\0' ) { if( *pt == '\n' || *pt == '\r' || *pt == '\t') *pt = ' '; pt++; } /* Data to insert result = checkbox + entry */ st.st_size+= asprintf(&result,"\n{{checkbox=%li;0}} %s\n", (long)now, entry); /* allocate mem for file + data */ str = (char *)malloc(sizeof(char)*(st.st_size + 1)); /* load the file */ len = fread(str, 1, st.st_size, fp); if (len >= 0) str[len] = '\0'; fclose(fp); /* search location of 'data' tag, data will inserted under it * 2 possibilities {{data#}} or {{data}} * search is weak. * */ int data_cnt = 0; int data_num = 0; str_ptr1=str; /* search the opening of tag */ while ( (str_ptr0=strstr(str_ptr1,"{{")) ) { str_ptr0+=2; if ( *(str_ptr0-3) != '!' && (str_ptr1=strstr(str_ptr0,"}}")) ) { lg = str_ptr1-str_ptr0; if ( lg > 255 ) lg=255; str_ptr1+=2; strncpy(tag,str_ptr0,lg); tag[lg]='\0'; /* search tag "data" */ if ( (str_ptr=strstr(tag,"data")) ) { str_ptr+=4; /* if digit attached at data */ if ( isdigit( *str_ptr ) ) data_num = atoi(str_ptr); else { data_num = 0; data_cnt++; } if ( form_nb_int == data_num || form_nb_int == data_cnt ) { /* insert the checkbox and the entry */ char *movethis = strdup(str_ptr1); *(str_ptr1)='\0'; strcat(str,result); strcat(str,movethis); return str; //return the new page } } } else str_ptr1 = str_ptr0; } return str; //tag not found, return page unchanged } /* if checked line and marked line with '#' (ifmarked=1) then delete it. */ char *wiki_delete_entry(char *filename, char *list, int ifmarked) { struct stat st; FILE* fp; char* str; char *str_ptr1,*str_ptr2,*str_ptr3,*str_ptr4; int len,lg; char index[16]; int i,value; char *key; /* Get the file size. */ if (stat(filename, &st)) return NULL; /* file exist? */ if (!(fp = fopen(filename, "rb"))) return NULL; /* allocate mem for file */ str = (char *)malloc(sizeof(char)*(st.st_size + 1)); /* load the file */ len = fread(str, 1, st.st_size, fp); if (len >= 0) str[len] = '\0'; fclose(fp); str_ptr1=list; /* foreach checkbox checked */ while ( (str_ptr2=strchr(str_ptr1,'=')) ) { lg=str_ptr2-str_ptr1; if ( lg < 16 ) strncpy(index, str_ptr1, lg); else lg=0; index[lg]='\0'; str_ptr1 = str_ptr2+1; //point the value if( (str_ptr2=strchr(str_ptr1,';')) ) { if ( *(str_ptr1) == '1' ) value = 1; else value = 0; str_ptr1 = str_ptr2+1; //point the next index } else break; //!end of the loop if we are here, there is a bug if ( value == 1 ) { /* search location of checkbox and delete the whole line * delete extra \n and \r too. * !!! stict search of {{checkbox=xxxxx}} */ lg=asprintf(&key,"{{checkbox=%s;",index); if ( (str_ptr3=strstr(str,key)) ) //search the beginning { if( ifmarked && *(strstr(str_ptr3,"}} ")+3) != '#' ) return str; //look for mark for deletion if ( (str_ptr4=strpbrk(str_ptr3+lg,"\n\r")) ) //search the end { /* if more than 2 \n or \r , extra eol will be deleted */ i=0; while ( *(str_ptr4+i) == '\n' || *(str_ptr4+i) == '\r' ) i++; if (i > 1) str_ptr4+= i; /* move right to left */ strcpy(str_ptr3,str_ptr4); } } } } return str; } /* Add formating chars (#*-+) at the beginning and the end of the checked lines */ char *wiki_formating_entry(char *filename, char *list, char formating) { struct stat st; FILE* fp; char* str; char *str_ptr1,*str_ptr2,*str_ptr3,*str_ptr4; unsigned int len,lg; char index[16]; int value; char *key; int i; /* Get the file size. */ if (stat(filename, &st)) return NULL; /* file exist? */ if (!(fp = fopen(filename, "rb"))) return NULL; /* allocate mem for file */ str = (char *)malloc(sizeof(char)*(st.st_size + 4)); //we will add 2 chars /* load the file */ len = fread(str, 1, st.st_size, fp); if (len >= 0) str[len] = '\0'; fclose(fp); str_ptr1=list; /* foreach checkbox checked */ while ( (str_ptr2=strchr(str_ptr1,'=')) ) { lg=str_ptr2-str_ptr1; if ( lg < 16 ) strncpy(index, str_ptr1, lg); else lg=0; index[lg]='\0'; str_ptr1 = str_ptr2+1; //point the value if( (str_ptr2=strchr(str_ptr1,';')) ) { if ( *(str_ptr1) == '1' ) value = 1; else value = 0; str_ptr1 = str_ptr2+1; //point the next index } else break; //!end of the loop if we are here, there is a bug if ( value == 1 ) { /* search location of checkbox and delete the whole line * delete extra \n and \r too. * !!! stict search of {{checkbox=xxxxx}} */ lg=asprintf(&key,"{{checkbox=%s;",index); if ( (str_ptr3=strstr(str,key)) ) //search the beginning { str_ptr3=strstr(str_ptr3,"}} ")+3; //search the beginning of the line to change if ( (str_ptr4=strpbrk(str_ptr3, "\n\r")) ) //search the end of the line to change { /* before to proceed we check that line is not already formated * except for '#' meaning this line can be deleted */ if( formating != '#' ) { if( strchr("-*_", *str_ptr3 ) ) goto skip_formating; for( i=0; i < str_ptr4-str_ptr3; i++ ) if( *(str_ptr3+i) == formating ) goto skip_formating; } else if( *str_ptr3 == '#' || *(str_ptr4-1) == '#' || *(str_ptr4-2) == '#' ) goto skip_formating; lg = strlen(str); //length of the page /* add 2 chars= ' '+formating at the end of line */ while ( lg > 0 ) { *(str+lg+3) = *(str+lg); if ( str+lg == str_ptr4 ) { *str_ptr4 = ' '; *(str_ptr4+1) = formating; lg++; break; } lg--; } /* add 1 char= formating at the beginning */ while ( lg > 0 ) { *(str+lg+1) = *(str+lg); if ( str+lg == str_ptr3 ) { *str_ptr3 = formating; break; } lg--; } skip_formating:; } //end line changed } //end {{checkbox....}} } //end if checkbox checked } //end foreach checkbox return str; } /* Remove formating char (#*-+) of each checked lines */ char *wiki_unformat_entry(char *filename, char *list) { struct stat st; FILE* fp; char* str; char *str_ptr1,*str_ptr2,*str_ptr3,*str_ptr4; unsigned int len,lg; char index[16]; int value; char *key; /* Get the file size. */ if (stat(filename, &st)) return NULL; /* file exist? */ if (!(fp = fopen(filename, "rb"))) return NULL; /* allocate mem for file */ str = (char *)malloc(sizeof(char)*(st.st_size + 1)); /* load the file */ len = fread(str, 1, st.st_size, fp); if (len >= 0) str[len] = '\0'; fclose(fp); str_ptr1=list; /* foreach checkbox checked */ while ( (str_ptr2=strchr(str_ptr1,'=')) ) { lg=str_ptr2-str_ptr1; if ( lg < 16 ) strncpy(index, str_ptr1, lg); else lg=0; index[lg]='\0'; str_ptr1 = str_ptr2+1; //point the value if( (str_ptr2=strchr(str_ptr1,';')) ) { if ( *(str_ptr1) == '1' ) value = 1; else value = 0; str_ptr1 = str_ptr2+1; //point the next index } else break; //!end of the loop if we are here, there is a bug if ( value == 1 ) { /* search location of checkbox * !!! stict search of {{checkbox=xxxxx}} */ lg=asprintf(&key,"{{checkbox=%s;",index); if ( (str_ptr3=strstr(str,key)) ) //search checkbox=... { str_ptr3=strstr(str_ptr3+lg,"}} ")+3; //point after "}} " if ( (str_ptr4=strpbrk(str_ptr3,"\n\r")) ) //search the end of the line to change { /* Remove formating at the end of the line */ char *ptr = strpbrk(str_ptr4-2, "#*-+"); //search formating 2 chars before the end. if ( ptr ) { do { ptr--; } while ( *ptr == ' ' ); //remove space ptr++; //point after formating char memcpy(ptr, str_ptr4, str+len-str_ptr4); //make line without formating at the end *(str+len-(str_ptr4-ptr)) = '\0'; //set the end of the page if ( (ptr = strpbrk(str_ptr3, "#*-+")) ) //search formating after "{{checkbox...}} " { ptr++; //point after formating char memcpy(str_ptr3, ptr, str+len-ptr); // line without formating at the beginning *(str+len-(ptr-str_ptr3)) = '\0'; //set end of the page } } } //end line changed } } //end if checkbox checked } //end foreach checkbox return str; } /* need to be improved */ char *wiki_set_checkbox(char *filename, char *list) { struct stat st; FILE* fp; char* str; char *str_ptr1,*str_ptr2,*str_ptr3; int len,lg; char index[16]; int value; char *key; /* Get the file size. */ if (stat(filename, &st)) return NULL; /* file exist? */ if (!(fp = fopen(filename, "rb"))) return NULL; /* allocate mem for file */ str = (char *)malloc(sizeof(char)*(st.st_size + 1)); /* load the file */ len = fread(str, 1, st.st_size, fp); if (len >= 0) str[len] = '\0'; fclose(fp); str_ptr1=list; /* foreach checkbox checked */ while ( (str_ptr2=strchr(str_ptr1,'=')) ) { lg=str_ptr2-str_ptr1; if ( lg < 16 ) strncpy(index, str_ptr1, lg); else lg=0; index[lg]='\0'; str_ptr1 = str_ptr2+1; //point the value if( (str_ptr2=strchr(str_ptr1,';')) ) { if ( *(str_ptr1) == '1' ) value = 1; else value = 0; str_ptr1 = str_ptr2+1; //point the next index } else break; //!end of the loop, there is a bug /* search location of checkbox and delete the whole line * stict search but {{checkbox=xxxxx;0}} is automatically created */ lg=asprintf(&key,"{{checkbox=%s;",index); if ( (str_ptr3=strstr(str,key)) ) { if ( value == 1 ) *(str_ptr3+lg) = '1'; else *(str_ptr3+lg) = '0'; } } return str; } ./ciwiki-3.0.4/src/ci.h000777 001750 001750 00000004607 14274673541 017102 0ustar00jpredonnetjpredonnet000000 000000 /* * CiWiki - a small lightweight wiki engine. * based on Didiwiki (Matthew Allum ) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #ifndef _HAVE_CIWIKI_HEADER #define _HAVE_CIWIKI_HEADER #define _GNU_SOURCE #include "config.h" #if defined(__MINGW32__) /* This is broken */ #undef DATADIR #include #include #include #include #include #include #include #include #include #ifndef WNOHANG #define WNOHANG 1 #endif #ifndef F_OK # define F_OK 00 #endif #ifndef X_OK # define X_OK 01 #endif #ifndef W_OK # define W_OK 02 #endif #ifndef R_OK # define R_OK 04 #endif #else #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #endif #define TRUE 1 #define FALSE 0 //min. change disconnect ip below #define DISCONNECT 30 //scripts are located in /usr/share/ciwiki/scripts //path to notifynewuser. sddout+stderr are redirected and script runs in background #define SCRIPTMAIL "/usr/local/libexec/notifynewuser.sh" //path to styles.css #define PATH_CSS "/usr/share/ciwiki/styles/styles.css" //these folders are located in $HOME/.ciwiki #define PICSFOLDER "images" #define FILESFOLDER "files" #define HTMLFOLDER "html" #define SCRIPTSFOLDER "scripts" #define ACCESSFOLDER "permission" #define CONFIGFOLDER "configuration" //max file size (byte) for http_response_send_smallfile(), larger = more memory required #define MAXFILESIZE 1000000 #include "util.h" #include "http.h" #include "wiki.h" #include "wikilogin.h" #endif ./ciwiki-3.0.4/src/wiki.h000777 001750 001750 00000001201 14270715760 017431 0ustar00jpredonnetjpredonnet000000 000000 #ifndef _HAVE_WIKI_HEADER #define _HAVE_WIKI_HEADER typedef struct WikiPageList WikiPageList; struct WikiPageList { char *name; time_t mtime; char *user_name; char *grp_name; }; void wiki_handle_http_request(HttpRequest *req); void wiki_show_header(HttpResponse *res, char *page_title, int want_edit, int autorized); void wiki_show_footer(HttpResponse *res); int wiki_print_data_as_html( HttpResponse *res, char *raw_page_data, int autorized, char *page); int wiki_init(char *ciwiki_home,unsigned restore_Wiki,unsigned create_htmlHome); WikiPageList** wiki_get_pages(int *n_pages, char *expr, int exprInName); #endif ./ciwiki-3.0.4/src/http.c000777 001750 001750 00000057176 14271677170 017471 0ustar00jpredonnetjpredonnet000000 000000 /* * CiWiki is a fork of DidiWiki * it will stay a small lightweight wiki engine with new features added. * Current developer: Jean-Pierre Redonnet (inphilly@gmail.com) * * Parts of this http and util code based on cvstrac sources. * See http://www.cvstrac.org * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include "ci.h" #include #include extern long int max_upload_size; long int upload_status; struct HttpRequestParam { char *key; char *val; }; struct HttpRequest { HttpRequestParam *params; int n_params; int n_params_alloc; char *uri; char *path_info; char *query_string; char *ip_src; }; struct HttpResponse { char *content_type; char *status_str; int status; char *extra_headers; char *data; int data_len; int data_len_alloced; }; /* ** Dump */ static long int save_dump_file(char *data, int len) { int k=0; int ok_write=0; char* fullfilename=NULL; //look for name="filename" while( data && (*(data+k) != '=') && (k < 200) ) k++; if ( (*(data+k) == '=') && (!strncmp(data+k-4,"name",4)) ) { if ( !strncmp(data+k+2,"filename",8) ) { data=data+k+11; //point after name="filename" //look for filename= and get the value char* ptr1=strstr(data,"filename="); if (ptr1) { data=ptr1+9; ////point after "filename=" //skip space and double quotes k=0; while( data && ((*(data+k) == '"') || (*(data+k) == ' ')) && (k < 10) ) k++; data=data+k; //look for the end of line k=0; while( data && (*(data+k) != '\r') && (*(data+k) != '\n') && (k < 255) ) k++; //copy the file name char* filename = strndup(data,k); *(filename+k)=0; *strchr(filename,'"')=0; //we are at the end of the line if ((*(data+k) == '\r') || (*(data+k) == '\n')) { data=data+k+1; //look for the content-type char* ptr2=strcasestr(data,"content-type"); if (ptr2) { data=ptr2+12; k=0; //skip space and colon while( data && ((*(data+k) == ' ') || (*(data+k) == ':')) && (k < 10) ) k++; data=data+k; //is it an image uploaded? if ( !strncasecmp(data,"image",5) ) { if (asprintf(&fullfilename,"%s/%s",PICSFOLDER,filename) <= 0) return -1; data=data+5; ok_write=1; } //is it an application? else if ( !strncasecmp(data,"application",11) ) { if (asprintf(&fullfilename,"%s/%s",FILESFOLDER,filename) <= 0) return -1; data=data+5; ok_write=1; } //is it html file? else if ( !strncasecmp(data,"text/html",9) ) { if (asprintf(&fullfilename,"%s/%s",HTMLFOLDER,filename) <= 0) return -1; data=data+5; ok_write=1; } //is it text plain? else if ( !strncasecmp(data,"text/plain",10) ) { if (asprintf(&fullfilename,"%s/%s",FILESFOLDER,filename) <= 0) return -1; data=data+5; ok_write=1; } else //return error return -1; if (ok_write) { //go to the end of the line k=0; while( data && (*(data+k) != '\r') && (*(data+k) != '\n') && (k < 40) ) k++; data=data+k+1; //skip the CR and LF k=0; while( data && ((*(data+k) == '\r') || (*(data+k) == '\n')) && (k < 40) ) k++; data=data+k; //point the data to save on the file FILE* fp; int bytes_written = 0; if (!(fp = fopen(fullfilename, "wb"))) return -1; while ( len > 0 ) { bytes_written = fwrite(data, sizeof(char), len, fp); len = len - bytes_written; data = data + bytes_written; } fclose(fp); return bytes_written; } return -1; //because content-type not allowed } } } } } return 0; //not a file to upload } /* ** Send a reply indicating that the HTTP request was malformed */ static void malformed_request(int code, char *info) { HttpResponse *res = NULL; res = http_response_new(NULL); http_response_set_status(res, 501, "Not Implemented"); http_response_printf(res, "Unrecognized HTTP Request Code=%i\n", code); http_response_send(res); /* log Error */ syslog(LOG_LOCAL0|LOG_INFO, "Malformed request 501\nCode=%i\n%s\n", code,info); exit(0); } /* * Add another query parameter or cookie to the parameter set. */ static void http_request_add_param(HttpRequest *req, char *key, char *value) { if( req->n_params_alloc <= req->n_params ) { req->n_params_alloc = req->n_params_alloc*2 + 10; req->params = realloc( req->params, req->n_params_alloc * sizeof(HttpRequestParam)); if( !req->params ) exit(1); /* XXX handle better */ } req->params[req->n_params].key = key; req->params[req->n_params].val = value; req->n_params++; } /* * Add a list of query parameters or cookies to the parameter set. * * Each parameter is of the form NAME=VALUE. Both the NAME and the * VALUE may be url-encoded ("+" for space, "%HH" for other special * characters). But this routine assumes that NAME contains no * special character and therefore does not decode it. * * Parameters are separated by the "terminator" character. Whitespace * before the NAME is ignored. * * The input string "z" is modified but no copies is made. "z" * should not be deallocated or changed again after this routine * returns or it will corrupt the parameter table. */ static void http_request_parse_params (HttpRequest *req, char *data, int terminator) { while( *data ) { char *key = NULL, *val = NULL; while( isspace(*data) ){ data++; } key = data; while( *data && *data != '=' && *data != terminator ) data++; if( *data == '=' ) { *data = '\0'; data++; val= data; while( *data && *data != terminator ) data++; if( *data ) { *data = '\0'; data++; } util_dehttpize(val); http_request_add_param(req, key, val); } else { if( *data ){ *data++ = 0; } http_request_add_param(req, key, NULL); } } } char* http_request_param_get(HttpRequest *req, char *key) { int i; for (i=0; in_params; i++) if (!strcmp(req->params[i].key, key)) return req->params[i].val; return NULL; } char* http_request_file_param_get(HttpRequest *req, char *key) { int ix; HttpRequest *reqx; reqx=req; for (ix=0; ixn_params; ix++) { return(reqx->params[ix].val); } return NULL; } char* http_request_checkbox_get(HttpRequest *req) { int i,lenght=0; static char string[1000]; //!limitation string[0]='\0'; for (i=0; in_params; i++) if (!strncmp(req->params[i].key, "checkbox", 8)) { lenght+=strlen(req->params[i].key+8); lenght+=strlen(req->params[i].val); if (lenght > 999) break; //!silent bug strcat(string,req->params[i].key+8); strcat(string,"="); strcat(string,req->params[i].val); strcat(string,";"); } return string; } char* http_request_get_uri(HttpRequest *req) { return req->uri; } char* http_request_get_path_info(HttpRequest *req) { return req->path_info; } char* http_request_get_query_string(HttpRequest *req) { return req->query_string; } char* http_request_get_ip_src(HttpRequest *req) { return req->ip_src; } /* * 2°) This routine handles a single HTTP request which is coming in on * standard input ( and which replies on standard output. ). * */ HttpRequest* http_request_new(void) { char *token, *content_type, *post_data, *z; int i; long int len; struct sockaddr_in remoteName; socklen_t size = sizeof(struct sockaddr_in); char request_line[2048]; /* A single line of input. */ HttpRequest *req = NULL; req = malloc(sizeof(HttpRequest)); memset(req, 0, sizeof(HttpRequest)); if( fgets(request_line, sizeof(request_line), stdin) == NULL ) malformed_request(1, "Empty request"); if ((token = util_extract_token(request_line, &z)) == NULL) malformed_request(2, request_line); //not token if(!(!strcmp(token,"GET") || !strcmp(token,"POST") || !strcmp(token,"HEAD"))) malformed_request(3, token); //token not accepted putenv("GATEWAY_INTERFACE=CGI/1.0"); //putenv(util_mprintf("REQUEST_METHOD=%s",token)); setenv("REQUEST_METHOD",token,1); if ((token = util_extract_token(z, &z)) == NULL) malformed_request(4, z); //no uri //putenv(util_mprintf("REQUEST_URI=%s", token)); setenv("REQUEST_URI",token,1); if (token) req->uri = strdup(token); /* eg. GET /blah.htm?crap HTTP/1.0 */ for(i=0; token[i] && token[i]!='?'; i++); if( token[i] ) token[i++] = 0; //putenv(util_mprintf("PATH_INFO=%s", token)); setenv("PATH_INFO",token,1); if (token) req->path_info = strdup(token); //putenv(util_mprintf("QUERY_STRING=%s", &token[i])); setenv("QUERY_STRING",&token[i],1); if (&token[i]) req->query_string = strdup(&token[i]); if( getpeername(fileno(stdin), (struct sockaddr*)&remoteName, &size) >=0 ) { //putenv(util_mprintf("REMOTE_ADDR=%s", inet_ntoa(remoteName.sin_addr))); setenv("REMOTE_ADDR",inet_ntoa(remoteName.sin_addr),1); req->ip_src = inet_ntoa(remoteName.sin_addr); } /* Get all the optional fields that follow the first line. */ while( fgets(request_line, sizeof(request_line), stdin) ) { char *key = NULL, *val = NULL; key = util_extract_token(request_line, &val); if (key == NULL || *key == '\0') break; /* strip any spacing around key */ while( isspace(*val) ){ val++; } i = strlen(val); while( i>0 && isspace(val[i-1]) ){ i--; } val[i] = '\0'; /* and lower case it */ for(i=0; key[i]; i++) key[i] = tolower(key[i]); if(!strcmp(key,"user-agent:")) { //putenv(util_mprintf("HTTP_USER_AGENT=%s", val)); setenv("HTTP_USER_AGENT",val,1); } else if (!strcmp(key,"content-length:")) { //putenv(util_mprintf("CONTENT_LENGTH=%s", val)); setenv("CONTENT_LENGTH",val,1); } else if (!strcmp(key,"referer:")) { //putenv(util_mprintf("HTTP_REFERER=%s", val)); setenv("HTTP_REFERER",val,1); } else if (!strcmp(key,"host:")) { //putenv(util_mprintf("HTTP_HOST=%s", val)); setenv("HTTP_HOST",val,1); } else if (!strcmp(key,"content-type:")) { //putenv(util_mprintf("CONTENT_TYPE=%s", val)); setenv("CONTENT_TYPE",val,1); } else if (!strcmp(key,"cookie:")) { //putenv(util_mprintf("HTTP_COOKIE=%s", val)); setenv("HTTP_COOKIE",val,1); } else if (!strcmp(key,"action:")) { //putenv(util_mprintf("ACTION=%s", val)); setenv("ACTION",val,1); } } /* Parse and store QUERY_STRING/POST/Cookie data in req object */ if (getenv("QUERY_STRING")) http_request_parse_params (req, strdup((getenv("QUERY_STRING"))), '&'); /* POST type data */ content_type = getenv("CONTENT_TYPE"); len = getenv("CONTENT_LENGTH") ? atoi(getenv("CONTENT_LENGTH")) : 0; /* Don't accept post size above the limit */ if (len > max_upload_size*1000) { syslog(LOG_LOCAL0|LOG_INFO, "Upload rejected - file to big %ld", len); upload_status=-413; while( --len > 0 ) fgetc(stdin); //flush stdin return req; } if (len && content_type) { if (strncmp(content_type,"application/x-www-form-urlencoded",19) == 0) { post_data = malloc( len+1 ); len = fread(post_data, 1, len, stdin); post_data[len] = '\0'; http_request_parse_params (req, post_data, '&'); } else if (strncmp(content_type,"multipart/form-data",19) == 0) { post_data = malloc( len+1 ); len = fread(post_data, 1, len, stdin); post_data[len] = '\0'; /* check if it's an upload, if not extract parameters */ upload_status = save_dump_file(post_data,len); if ( upload_status == 0 ) /* it's a form - extract parameters */ http_request_parse_params (req, post_data, '&'); else /* That was an upload */ syslog(LOG_LOCAL0|LOG_INFO, "Upload status=%ld(bytes or err code)", upload_status); } else malformed_request(5, content_type); } if (getenv("HTTP_COOKIE")) http_request_parse_params (req, strdup((getenv("HTTP_COOKIE"))), '&'); return req; } HttpResponse* http_response_new(HttpRequest *req) { HttpResponse *res = NULL; res = malloc(sizeof(HttpResponse)); memset(res, 0, sizeof(HttpResponse)); res->status = 200; res->status_str = "OK"; res->content_type = NULL; return res; } void http_response_set_content_type(HttpResponse *res, char *type) { res->content_type = strdup(type); } /* like Location: hello.html\r\n */ void http_response_append_header(HttpResponse *res, char *header) { if (res->extra_headers) { res->extra_headers = realloc( res->extra_headers, strlen(res->extra_headers) + strlen(header) + 1); strcat(res->extra_headers, header); } else { res->extra_headers = strdup(header); } } void http_response_printf_alloc_buffer(HttpResponse *res, int bytes) { res->data_len_alloced += bytes; res->data = realloc( res->data, res->data_len_alloced ); } void http_response_printf(HttpResponse *res, const char *format, ...) { va_list ap; char *tmp = NULL; va_start(ap,format); if ( vasprintf(&tmp, format, ap) < 0 ) { fprintf(stderr, "Error http_response_printf.\n"); return; } va_end(ap); if ((res->data_len + strlen(tmp) + 1) < res->data_len_alloced) { if (res->data_len) memcpy(res->data + res->data_len - 1, tmp, strlen(tmp)+1); else memcpy(res->data, tmp, strlen(tmp)+1); } else if (!res->data_len) /* no data printed yet */ { res->data = malloc(strlen(tmp)+1); memcpy(res->data, tmp, strlen(tmp)+1); res->data_len_alloced = strlen(tmp)+1; } else { res->data = realloc( res->data, res->data_len + strlen(tmp) ); memcpy(res->data + res->data_len - 1, tmp, strlen(tmp)+1); res->data_len_alloced = res->data_len + strlen(tmp); } res->data_len = strlen(res->data)+1; free(tmp); } void http_response_set_status(HttpResponse *res, int status_code, char *status_desc) { res->status = status_code; res->status_str = strdup(status_desc);; } void http_response_set_data(HttpResponse *res, void *data, int data_len) { res->data = (char *)data; res->data_len = data_len; } void http_response_send_smallfile (HttpResponse *res, char *filename, char *content, unsigned long sizelimit) /* ! file loaded in mem */ { unsigned char *data; FILE *fp=fopen(filename,"rb"); /* get file size and alloc memory */ fseek (fp , 0 , SEEK_END); unsigned long datasize = ftell(fp); if (datasize > sizelimit) exit(-1); rewind (fp); if (!(data = (unsigned char*)malloc(datasize))) exit(-1); /* load the file */ if (!fread(data, datasize, 1, fp)) exit(-1); http_response_set_content_type(res, content); http_response_set_data(res, data, datasize); http_response_send(res); fclose(fp); } void http_response_send_headers(HttpResponse *res) { printf("HTTP/1.0 %d %s\r\n", res->status, res->status_str); if (res->extra_headers) printf("%s", res->extra_headers); /* XXX ciwiki likes cookies etc */ printf("Content-Type: %s; charset=UTF-8\r\n", res->content_type == NULL ? "text/html" : res->content_type); if (res->data_len) { printf("Content-Length: %d\r\n", res->data_len); printf("Connection: close\r\n"); /* if fullHttpReply */ } printf("\r\n"); } void http_response_send(HttpResponse *res) { http_response_send_headers(res); if( res->data ) { int n_bytes = res->data_len; /* Dont send '\0' in response */ // fix wrong response length //if (res->data[n_bytes-1] == '\0') // n_bytes--; fwrite(res->data, 1, n_bytes, stdout); } } void http_response_send_bigfile (HttpResponse *res, char *filename, char *content) /* ! basic, just read and copy file bit/bit : save memory but cost time */ { http_response_set_content_type(res, content); http_response_send_headers(res); //unsigned char *data; FILE *fp=fopen(filename,"rb"); /* get file size */ fseek (fp , 0 , SEEK_END); unsigned long datasize = ftell(fp); /* copy bytes */ rewind (fp); while ( datasize-- ) fputc(fgetc(fp),stdout); fclose(fp); } /* ** SIGINT handler. */ void sigint(int sig) { printf("\nCiwiki stopped.\n"); syslog(LOG_LOCAL0|LOG_INFO, "Ciwiki stopped.\n"); (void)signal(SIGINT, SIG_DFL); (void)kill(getpid(), SIGINT); /* NOTREACHED */ exit(1); } /* ** SIGTERM handler */ void sigterm(int sig) { printf("\nCiwiki stopped.\n"); syslog(LOG_LOCAL0|LOG_INFO, "Ciwiki stopped.\n"); (void)signal(SIGTERM, SIG_DFL); (void)kill(getpid(), SIGTERM); /* NOTREACHED */ exit(1); } /* ** Maximum number of child processes that we can have running ** at one time before we start slowing things down. */ #define MAX_PARALLEL 5 /* ** HTTP Management starts here: 1°) Implement an HTTP server daemon. */ HttpRequest* http_server(struct in_addr address, int iPort) { int listener; /* The server socket */ int connection; /* A socket for each connection */ fd_set readfds; /* Set of file descriptors for select() */ socklen_t lenaddr; /* Length of the inaddr structure */ int child; /* PID of the child process */ int nchildren = 0; /* Number of child processes */ struct timeval delay; /* How long to wait inside select() */ struct sockaddr_in inaddr; /* The socket address */ int reuse = 1; int n = 0; char url_prefix[256]; int err_flag=0; /* catch SIGINT */ (void) signal(SIGINT, sigint); /* catch SIGTERM */ (void) signal(SIGTERM, sigterm); memset(&inaddr, 0, sizeof(inaddr)); inaddr.sin_family = AF_INET; inaddr.sin_addr.s_addr = address.s_addr; inaddr.sin_port = htons(iPort); listener = socket(AF_INET, SOCK_STREAM, 0); fprintf(stderr,"CiWiki firing up ...\n"); if( listener < 0 ) { fprintf(stderr,"Can't create a socket\n"); exit(1); } #ifdef SO_REUSEADDR setsockopt(listener, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof(reuse)); #endif while (n < 10) { fprintf(stderr,"Attempting to bind to %s:%i .. ", inet_ntoa(address), iPort); inaddr.sin_port = htons(iPort + n); if( bind(listener, (struct sockaddr*)&inaddr, sizeof(inaddr)) < 0 ) { fprintf(stderr,"Failed! \n"); n++; continue; } fprintf(stderr,"Success! \n"); break; } if (n == 10) { fprintf(stderr,"Can't bind to any ports, giving up.\n"); exit(1); } fprintf(stderr,"CiWiki Started. Please point your browser at %s:%i\n", inet_ntoa(address), iPort); /* log starting information */ openlog("Ciwiki", 0, 0); syslog(LOG_LOCAL0|LOG_INFO, "started with PID %d", getpid()); /* Set CIWIKI_URL_PREFIX if not already set - rss uses it */ snprintf(url_prefix, 256, "%s:%i/", inet_ntoa(address), iPort+n); setenv("CIWIKI_URL_PREFIX", url_prefix , 0); listen(listener,10); /* Listen undefinitely (the father stays in the loop) */ while( 1 ) { if( nchildren > MAX_PARALLEL ) { /* Slow down if connections are arriving too fast */ sleep( nchildren - MAX_PARALLEL ); } delay.tv_sec = 60; delay.tv_usec = 0; FD_ZERO(&readfds); FD_SET( listener, &readfds); /* check if incoming data are available */ if( select( listener+1, &readfds, 0, 0, &delay) ) { lenaddr = sizeof(inaddr); /* accept a new connection on a socket */ connection = accept(listener, (struct sockaddr*)&inaddr, &lenaddr); /* if successful connection */ if( connection >= 0 ) { /* fork() returns 0 to the child and the child's pid to the father */ child = fork(); //father+child are running now if( child != 0 ) { /* Here, the father decreases the nb of children available * and closes the connection (child will take it) */ if( child > 0 ) nchildren++; close(connection); } else { /* There, the child connects stdin/out to the socket */ /* then returns req object for caller to handle */ /* dup creates an alias and returns the lowest free descriptor) * dup fails if dup() < 0 */ close(0); //close stdin if ( dup(connection) < 0) //dup connection on stdin err_flag=1; close(1); //close stdout if ( dup(connection) < 0) //dup connection on stdout err_flag &= 2; close(2); //close stderr if ( dup(connection) < 0) //dup connection on stderr err_flag &= 4; close(connection); //alias are done, don't need it anymore if( err_flag ) syslog(LOG_LOCAL0|LOG_INFO, "close connection error: %i \n",err_flag); /* The child exits here, * http_request_new() will be called and will return the request */ return http_request_new(); // 2°) Handle a single HTTP request which is coming in } } } //end incomming data /* Bury dead children */ while( waitpid(0, 0, WNOHANG)>0 ) nchildren--; } //infinite loop... /* NOT REACHED */ exit(1); } ./ciwiki-3.0.4/src/wikiashtml.h000777 001750 001750 00000000252 11411716530 020635 0ustar00jpredonnetjpredonnet000000 000000 #ifndef _HAVE_WIKIASHTML_HEADER #define _HAVE_WIKIASHTML_HEADER int wiki_print_data_as_html( HttpResponse *res, char *raw_page_data, int autorized, char *page); #endif ./ciwiki-3.0.4/src/Makefile000664 001750 001750 00000044713 14274674204 017770 0ustar00jpredonnetjpredonnet000000 000000 # Makefile.in generated by automake 1.16.1 from Makefile.am. # src/Makefile. Generated from Makefile.in by configure. # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/ciwiki pkgincludedir = $(includedir)/ciwiki pkglibdir = $(libdir)/ciwiki pkglibexecdir = $(libexecdir)/ciwiki am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : bin_PROGRAMS = ciwiki$(EXEEXT) subdir = src ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am_ciwiki_OBJECTS = ci.$(OBJEXT) http.$(OBJEXT) util.$(OBJEXT) \ wiki.$(OBJEXT) wikilogin.$(OBJEXT) wikichanges.$(OBJEXT) \ wikiashtml.$(OBJEXT) wikientries.$(OBJEXT) ciwiki_OBJECTS = $(am_ciwiki_OBJECTS) ciwiki_LDADD = $(LDADD) AM_V_P = $(am__v_P_$(V)) am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY)) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_$(V)) am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_$(V)) am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I. -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/ci.Po ./$(DEPDIR)/http.Po \ ./$(DEPDIR)/util.Po ./$(DEPDIR)/wiki.Po \ ./$(DEPDIR)/wikiashtml.Po ./$(DEPDIR)/wikichanges.Po \ ./$(DEPDIR)/wikientries.Po ./$(DEPDIR)/wikilogin.Po am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_$(V)) am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_$(V)) am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(ciwiki_SOURCES) DIST_SOURCES = $(ciwiki_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = ${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing aclocal-1.16 ALLOCA = AMTAR = $${TAR-tar} AM_DEFAULT_VERBOSITY = 1 AUTOCONF = ${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing autoconf AUTOHEADER = ${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing autoheader AUTOMAKE = ${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing automake-1.16 AWK = mawk CC = gcc CCDEPMODE = depmode=gcc3 CFLAGS = -g -O2 CPP = gcc -E CPPFLAGS = CYGPATH_W = echo DEFS = -DHAVE_CONFIG_H DEPDIR = .deps ECHO_C = ECHO_N = -n ECHO_T = EGREP = /bin/grep -E EXEEXT = GCC_FLAGS = -g -Wall -fno-strict-aliasing GREP = /bin/grep INSTALL = /usr/bin/install -c INSTALL_DATA = ${INSTALL} -m 644 INSTALL_PROGRAM = ${INSTALL} INSTALL_SCRIPT = ${INSTALL} INSTALL_STRIP_PROGRAM = $(install_sh) -c -s LDFLAGS = LIBOBJS = LIBS = LTLIBOBJS = MAKEINFO = ${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing makeinfo MKDIR_P = /bin/mkdir -p OBJEXT = o PACKAGE = ciwiki PACKAGE_BUGREPORT = inphilly@gmail.com PACKAGE_NAME = ciwiki PACKAGE_STRING = ciwiki 3.0.4 PACKAGE_TARNAME = ciwiki PACKAGE_URL = PACKAGE_VERSION = 3.0.4 PATH_SEPARATOR = : SET_MAKE = SHELL = /bin/bash STRIP = VERSION = 3.0.4 abs_builddir = /home/jpredonnet/ciwiki/ciwiki-3.0.4/src abs_srcdir = /home/jpredonnet/ciwiki/ciwiki-3.0.4/src abs_top_builddir = /home/jpredonnet/ciwiki/ciwiki-3.0.4 abs_top_srcdir = /home/jpredonnet/ciwiki/ciwiki-3.0.4 ac_ct_CC = gcc am__include = include am__leading_dot = . am__quote = am__tar = $${TAR-tar} chof - "$$tardir" am__untar = $${TAR-tar} xf - bindir = ${exec_prefix}/bin build_alias = builddir = . datadir = ${datarootdir} datarootdir = ${prefix}/share docdir = ${datarootdir}/doc/${PACKAGE_TARNAME} dvidir = ${docdir} exec_prefix = ${prefix} host_alias = htmldir = ${docdir} includedir = ${prefix}/include infodir = ${datarootdir}/info install_sh = ${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/install-sh libdir = ${exec_prefix}/lib libexecdir = ${exec_prefix}/libexec localedir = ${datarootdir}/locale localstatedir = ${prefix}/var mandir = ${datarootdir}/man mkdir_p = $(MKDIR_P) oldincludedir = /usr/include pdfdir = ${docdir} prefix = /usr/local program_transform_name = s,x,x, psdir = ${docdir} runstatedir = ${localstatedir}/run sbindir = ${exec_prefix}/sbin sharedstatedir = ${prefix}/com srcdir = . sysconfdir = ${prefix}/etc target_alias = top_build_prefix = ../ top_builddir = .. top_srcdir = .. PREFIXDIR = $(prefix) PKGDATADIR = $(datadir)/matchbox DATADIR = $(datadir) AM_CFLAGS = $(GCC_FLAGS) INCLUDES = -DDATADIR=\"$(DATADIR)\" -DPKGDATADIR=\"$(PKGDATADIR)\" -DPREFIX=\"$(PREFIXDIR)\" ciwiki_SOURCES = ci.c ci.h http.c http.h \ util.c util.h wiki.c wiki.h \ wikilogin.c wikilogin.h wikitext.h \ wikichanges.c wikichanges.h \ wikiashtml.c wikiashtml.h \ wikientries.c wikientries.h all: all-am .SUFFIXES: .SUFFIXES: .c .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) ciwiki$(EXEEXT): $(ciwiki_OBJECTS) $(ciwiki_DEPENDENCIES) $(EXTRA_ciwiki_DEPENDENCIES) @rm -f ciwiki$(EXEEXT) $(AM_V_CCLD)$(LINK) $(ciwiki_OBJECTS) $(ciwiki_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c include ./$(DEPDIR)/ci.Po # am--include-marker include ./$(DEPDIR)/http.Po # am--include-marker include ./$(DEPDIR)/util.Po # am--include-marker include ./$(DEPDIR)/wiki.Po # am--include-marker include ./$(DEPDIR)/wikiashtml.Po # am--include-marker include ./$(DEPDIR)/wikichanges.Po # am--include-marker include ./$(DEPDIR)/wikientries.Po # am--include-marker include ./$(DEPDIR)/wikilogin.Po # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po # $(AM_V_CC)source='$<' object='$@' libtool=no \ # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ # $(AM_V_CC_no)$(COMPILE) -c -o $@ $< .c.obj: $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po # $(AM_V_CC)source='$<' object='$@' libtool=no \ # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ # $(AM_V_CC_no)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/ci.Po -rm -f ./$(DEPDIR)/http.Po -rm -f ./$(DEPDIR)/util.Po -rm -f ./$(DEPDIR)/wiki.Po -rm -f ./$(DEPDIR)/wikiashtml.Po -rm -f ./$(DEPDIR)/wikichanges.Po -rm -f ./$(DEPDIR)/wikientries.Po -rm -f ./$(DEPDIR)/wikilogin.Po -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/ci.Po -rm -f ./$(DEPDIR)/http.Po -rm -f ./$(DEPDIR)/util.Po -rm -f ./$(DEPDIR)/wiki.Po -rm -f ./$(DEPDIR)/wikiashtml.Po -rm -f ./$(DEPDIR)/wikichanges.Po -rm -f ./$(DEPDIR)/wikientries.Po -rm -f ./$(DEPDIR)/wikilogin.Po -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-binPROGRAMS clean-generic cscopelist-am ctags ctags-am \ distclean distclean-compile distclean-generic distclean-tags \ distdir dvi dvi-am html html-am info info-am install \ install-am install-binPROGRAMS install-data install-data-am \ install-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \ ps ps-am tags tags-am uninstall uninstall-am \ uninstall-binPROGRAMS .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ./ciwiki-3.0.4/src/util.c000755 001750 001750 00000017573 14305325371 017447 0ustar00jpredonnetjpredonnet000000 000000 /* * CiWiki a fork of DidiWiki, the small lightweight wiki engine. * * Parts of this http and util code based on cvstrac sources. * See http://www.cvstrac.org * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include "ci.h" char * util_mprintf(const char *format, ...) { va_list ap; char *buf = NULL; va_start(ap,format); if (vasprintf(&buf, format, ap) < 0) fprintf(stderr,"util_mprintf error"); va_end(ap); return buf; } /* * Convert a single HEX digit to an integer */ int util_ascii_to_hex(int c) { if( c>='a' && c<='f' ){ c += 10 - 'a'; }else if( c>='A' && c<='F' ){ c += 10 - 'A'; }else if( c>='0' && c<='9' ){ c -= '0'; }else{ c = 0; } return c; } /* * Remove the HTTP encodings from a string. The conversion is done * in-place. */ void util_dehttpize(char *z) { int i = 0, j = 0; while(z[i]) { switch(z[i]) { case '%': if( z[i+1] && z[i+2] ){ z[j] = util_ascii_to_hex(z[i+1]) << 4; z[j] |= util_ascii_to_hex(z[i+2]); i += 2; } break; case '+': z[j] = ' '; break; default: z[j] = z[i]; break; } i++; j++; } z[j] = 0; } /* * Remove the first space-delimited token from a string and return * a pointer to it. Add a NULL to the string to terminate the token. * Make *zLeftOver point to the start of the next token. * */ char * util_extract_token(char *input, char **leftOver) { char *result = 0; if (input == 0) { if( leftOver ) *leftOver = 0; return 0; } while( isspace(*input) ) input++; result = input; while( *input && !isspace(*input) ) input++; if (*input) { *input = 0; input++; while( isspace(*input) ){ input++; } } if( leftOver ) *leftOver = input; return result; } /* * Make the given string safe for HTML by converting every "<" into "<", * every ">" into ">" and every "&" into "&". Return a pointer * to a new string obtained from malloc(). * * We also encode " as " so that it can appear as an argument * to markup. * */ char* util_htmlize(const char *in, int n) { int c; int i = 0; int count = 0; char *out; if( n<0 ) n = strlen(in); while( i': count += 4; break; case '&': count += 5; break; case '"': count += 6; break; default: count++; break; } i++; } i = 0; out = malloc( count+1 ); if( out==0 ) return 0; while( n-->0 && (c = *in)!=0 ){ switch( c ){ case '<': out[i++] = '&'; out[i++] = 'l'; out[i++] = 't'; out[i++] = ';'; break; case '>': out[i++] = '&'; out[i++] = 'g'; out[i++] = 't'; out[i++] = ';'; break; case '&': out[i++] = '&'; out[i++] = 'a'; out[i++] = 'm'; out[i++] = 'p'; out[i++] = ';'; break; case '"': out[i++] = '&'; out[i++] = 'q'; out[i++] = 'u'; out[i++] = 'o'; out[i++] = 't'; out[i++] = ';'; break; default: out[i++] = c; break; } in++; } out[i] = 0; return out; } int validURIchar(char c) { return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || c == '.' || c == '-' || c == '_' || c == '~' || c == '?'; /* question mark isn't allowed character, but I'm not going to encode it */ } /* * Encodes character which aren't allowed in URIs * like %D0 */ char urienc[16] = {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'}; char * util_httpize(const char* url) { /* Find length of result string */ int i; int len = 0; for(i = 0; url[i]; ++i) { if( validURIchar(url[i]) ) len++; else len += 3; } char * out = malloc(sizeof(char)*(len + 1)); if( out == 0 ) return 0; out[len]=0; int j = 0; for( i = 0; url[i]; ++i ) { if( validURIchar(url[i]) ) out[j++] = url[i]; else { out[j++] = '%'; out[j++] = urienc[ (url[i]&0xF0) >> 4 ]; out[j++] = urienc[ url[i]&0x0F ]; } } return out; } /* *Convert ipv4 32 bits address to decimal value */ int parseIpv4Address(uint32_t *addr, const char *addrStr) { const char *p = addrStr; char *endp; unsigned long a = strtoul(p, &endp, 10); if (*endp != '.') return -1; unsigned long b = strtoul(p = endp+1, &endp, 10); if (*endp != '.') return -1; unsigned long c = strtoul(p = endp+1, &endp, 10); if (*endp != '.') return -1; unsigned long d = strtoul(p = endp+1, &endp, 10); if (*endp) return -1; *addr = (uint32_t) ((a << 24) | (b << 16) | (c << 8) | d); return 0; } char* hashFnv32a(char *key) { int i,l; unsigned int hval1=0x811c9dc5; char *hash; l= strlen(key)/2; for(i=0;i<=l;i++) { hval1^= *(key+i); hval1+= (hval1<<1)+(hval1<<4)+(hval1<<7)+(hval1<<8)+(hval1<<24); } asprintf(&hash,"%x", hval1); return( hash ); } char* code(char *key, char *str) { int i,j,k,p; char alpha[] = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$*+-_/#%,;:!?~=&@{}()[]"; char* fullKey = (char *)calloc(1+strlen(str), sizeof(char)); char* crypt = (char *)calloc(1+strlen(str), sizeof(char)); //return result don't free it here int* coordphrase = (int *)calloc(1+strlen(str), sizeof(int)); int* coordphrase_cle = (int *)calloc(1+strlen(str), sizeof(int)); int* newcoord = (int *)calloc(1+strlen(str), sizeof(int)); int* coordcrypt = (int *)calloc(1+strlen(str), sizeof(int)); if(key == NULL || *key == '\0' || str == NULL || *str == '\0') { return NULL; } j=0; for(i=0; i < strlen(str); i++) { fullKey[i] = key[j]; j++; if( j == strlen(key) ) j=0; } for(k=0; k < strlen(str); k++) { for(p=0; p < strlen(alpha); p++) { if( str[k] == alpha[p] ) coordphrase[k] = p; if( fullKey[k] == alpha[p] ) coordphrase_cle[k] = p; } newcoord[k] = coordphrase[k] + coordphrase_cle[k]; if( newcoord[k] > strlen(alpha)-1 ) newcoord[k]-= strlen(alpha); crypt[k]= alpha[newcoord[k]]; // crypt+=newcoord[k]; } free(fullKey); free(coordphrase); free(coordphrase_cle); free(newcoord); free(coordcrypt); return crypt; // return phrase_cle;\n } char* decode(char *key, char *str) { int i,j; char alpha[] = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$*+-_/#%,;:!?~=&@{}()[]"; char* fullKey = (char *)calloc(1+strlen(str), sizeof(char)); char* decrypt = (char *)calloc(1+strlen(str), sizeof(char)); //return result don't free it here int* coordcrypt = (int *)calloc(1+strlen(str), sizeof(int)); if(key == NULL || *key == '\0' || str == NULL || *str == '\0') { return NULL; } for(i=0; i < strlen(str); i++) { for(j=0; j < strlen(alpha); j++) { if( str[i] == alpha[j] ) coordcrypt[i]= j; } } j=0; for(i=0; i < strlen(str); i++) { fullKey[i] = key[j]; j++; if( j == strlen(key) ) j=0; } for(i=0; i < strlen(fullKey); i++) { for(j=0; j < strlen(alpha); j++) { if( fullKey[i] == alpha[j] ) coordcrypt[i]-= j; if(coordcrypt[i] < 0) coordcrypt[i]+= strlen(alpha); } } for(i=0; i < strlen(str); i++) { decrypt[i] = alpha[coordcrypt[i]]; } free(fullKey); free(coordcrypt); return decrypt; } ./ciwiki-3.0.4/src/http.h000777 001750 001750 00000003125 12500566212 017442 0ustar00jpredonnetjpredonnet000000 000000 #ifndef _HAVE_HTTP_HEADER #define _HAVE_HTTP_HEADER typedef struct HttpResponse HttpResponse; typedef struct HttpRequest HttpRequest; typedef struct HttpRequestParam HttpRequestParam; HttpRequest* http_server(struct in_addr address, int iPort); HttpRequest* http_request_new(void); char* http_request_param_get(HttpRequest *req, char *key); void http_request_param_print(HttpRequest *res,HttpRequest *req); char* http_request_file_param_get(HttpRequest *req, char *key); char* http_request_checkbox_get(HttpRequest *req); char* http_request_get_uri(HttpRequest *req); char* http_request_get_path_info(HttpRequest *req); char* http_request_get_query_string(HttpRequest *req); char* http_request_get_ip_src(HttpRequest *req); HttpResponse* http_response_new(HttpRequest *req); void http_response_printf(HttpResponse *res, const char *format, ...); void http_response_printf_alloc_buffer(HttpResponse *res, int bytes); void http_response_set_content_type(HttpResponse *res, char *type); void http_response_set_status(HttpResponse *res, int status_code, char *status_desc) ; void http_response_set_data(HttpResponse *res, void *data, int data_len); void http_response_send_smallfile (HttpResponse *res, char *filename, char *content, unsigned long sizelimit); void http_response_send_bigfile (HttpResponse *res, char *filename, char *content); void http_response_append_header(HttpResponse *res, char *header); void http_response_send_headers(HttpResponse *res); void http_response_send(HttpResponse *res); void sigint(int sig); void sigterm(int sig); #endif ./ciwiki-3.0.4/src/wikitext.h000777 001750 001750 00000153761 14305557106 020356 0ustar00jpredonnetjpredonnet000000 000000 /* * CiWiki a fork of DidiWiki, a small lightweight wiki engine. * CiWiki Copyright 2010...2015 Jean-Pierre Redonnet * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #ifndef _HAVE_WIKI_TEXT_HEADER #define _HAVE_WIKI_TEXT_HEADER #define MSG01 \ \ "\n

    Permission denied - You need to login.

    " \ "Return to the previous page.\n" \ "\n" #define MSG02 \ \ "This file is too large!\n" #define MSG03 \ \ "This file is not allowed!\n" #define MSG04 \ \ "Your file is uploaded. File size=%ld bytes\n" #define MSG05 \ \ "Invalid access code." #define MSG06 \ \ "You can log in with your new password." #define MSG07 \ \ "Password is too short. 8 chars or more required." #define MSG08 \ \ "Password with invalid char" #define MSG09 \ \ "Password is too long. 24 chars or less required" #define MSG10 \ \ "Login refused: Wrong password" #define MSG11 \ \ "Login refused: Wrong name" #define MSG12 \ \ "Internal error. We are sorry. Please report the problem." #define MSG13 \ \ "Unknow error." #define MSG14 \ \ "You cannot change your password (autologged)." #define MSG15 \ \ "Permission denied" #define MSG16 \ \ "Name or password is too short. 8 chars or more required." #define MSG17 \ \ "Name or password with invalid char" #define MSG18 \ \ "Name or password is too long. 24 chars or less required" #define MSG19 \ \ "Login refused: Wrong name/password" #define MSG20 \ \ "Login refused: Too many attempts - Retry later." #define MSG21 \ \ "Login refused: Wrong name/password" #define MSG22 \ \ "Username already exist. Choose another one." #define MSG23 \ \ "Email non valid." #define MSG24 \ \ "You need an access code. You should receive it by email." #define MSG25 \ \ "Internal error. We are sorry. Please report the problem." #define MSG26 \ \ "Unknow error." #define MSG27 \ \ "This page name exists. Choose another name" #define BACK \ "href='javascript:javascript:history.go(-1)'><<<Back\n" \ #define EDITHEADER \ \ "\n" \ "
    \n" #define PAGEHEADER \ \ "\n" \ "
    \n" #define PAGEFOOTER \ \ "
    \n" #define SHORTHELP \ \ "\n" \ "
    \n" #define SECURELOGIN \ \ "\n" \ \ "
    \n" \ "

    Login page.

    " \ "
    \n" \ "\n" \ "\n" \ "" \ "\n" \ "\n" \ "" \ "\n" \ "\n" \ "\n" \ "\n" \ "
    User name:
    Password:
    \n" \ "
    \n" \ #define SECURELOGIN2 \ \ "\n" \ \ "
    \n" \ "

    Login page.

    " \ "\n" \ "\n" \ "" \ "\n" \ "\n" \ "" \ "\n" \ "\n" \ "\n" \ "" \ "\n" \ "\n" \ "\n" \ "
    User name:
    Password:
    Key:
    \n" \ "
    \n" \ "\n" \ "\n" \ "\n" \ "\n" \ "
    \n" \ #define LOGINFORM \ \ "

    Login

    " \ "
    \n" \ "\n" \ "\n" \ "" \ "\n" \ "\n" \ "" \ "\n" \ "\n" \ "\n" \ "
    User name:
    Password:
    \n" \ "
    \n" \ "

    Are you a new user? Please click here to create a new account.

    \n" #define LOGINFORM2 \ \ "

    Login

    " \ "

    New user? Please create a new account.

    \n" \ "
    \n" \ "\n" \ "\n" \ "" \ "\n" \ "\n" \ "" \ "\n" \ "\n" \ "\n" \ "
    User name:
    Password:\n" \ "Show it:
    \n" \ "
    \n" \ "\n" #define NEWLOGINFORM \ \ "

    Create a new Account

    " \ "

    Please choose your user name, your password and enter a valid email address.
    " \ "You will receive your validation code on your email

    \n" \ "
    \n" \ "\n" \ "\n" \ "" \ "\n" \ "\n" \ "" \ "\n" \ "\n" \ "" \ "\n" \ "\n" \ "\n" \ "\n" \ "\n" \ "\n" \ "" \ "\n" \ "\n" \ "\n" \ "\n" \ "
    User name:
    Password:
    Your Email:
    => A validation code will be returned by mail.
    " \ "Reenter your User name, pwd, email with your code.
    Validation Code:
    \n" \ " \n" \ "
    \n" #define CHGPWDFORM \ \ "
    \n" \ "\n" \ "\n" \ "" \ "\n" \ "\n" \ "" \ "\n" \ "\n" \ "" \ "\n" \ "\n" \ "\n" \ "\n"\ "
    Old password:
    New password:
    Reenter your password:
    \n" \ "
    \n" #define LOGINFO \ \ "

    Login Information

    " \ "
    \n" \ "\n" \ "\n" \ "" \ "\n" \ "" \ "\n" \ "\n"\ "\n" \ "" \ "\n" \ "\n" \ "" \ "\n" \ "\n" \ "" \ "\n" \ "\n" \ "\n"\ "\n" \ "\n" \ "
    IP Address:%s
    Login name:%s

    Change your password:
    Old password:
    New password:
    Reenter your password:

    Return to the previous page.
    \n" \ "
    \n" #define CREATEFORM \ \ "
    \n" \ "Page name:\n" \ "


    Encrypted text has limited formating possibilities and cannot use template.

    \n" \ \ "Encrypt text?\n" \ "\n" \ "  or  " \ "Select a template:\n" \ "\n" \ \ "

    \n" \ "\n" #define EDITFORM \ \ "
    \n" \ "\n" \ "

    " \ "" \ "

    \n" \ "
    \n" \ "\n" #define SHOWCRYPTFORM \ \ "\n" \ "\n" \ "
    \n" \ "key:\n" \ "\n" \ "\n" \ "

    \n" \ "Input
    \n" \ "\n" \ "

    \n" \ "Output
    \n" \ "\n" \ "
    \n" #define EDITCRYPTFORM \ \ "\n" \ "\n" \ "
    \n" \ "key:\n" \ "\n" \ "\n" \ "

    \n" \ "Input
    \n" \ "\n" \ "

    \n" \ "Output
    \n" \ "\n" \ "

    \n" \ "
    \n" #define CREATECRYPTFORM \ \ "\n" \ "\n" \ "
    \n" \ "Key:\n" \ "\n" \ "\n" \ "

    \n" \ "Your text:
    \n" \ "\n" \ "

    \n" \ "Encrypted:
    \n" \ "\n" \ "

    \n" \ " Locked:

    \n" \ "
    \n" #define EDITPREVIEW \ \ "
    Preview:
    \n" #define DELETEFORM \ \ "
    \n" \ "Are you really sure you want to delete the page %s?\n" \ "

    \n" \ "

    " #define HOMETEXT "" \ \ "==Welcome to !CiWiki [images/ciwiki.png] alias !DidiWiki\n" \ "/!CiWiki / is a fork of /!DidiWiki / with several new features added.\n" \ "!CiWiki is a small and simple [http://en.wikipedia.org/wiki/Wiki WikiWikiWeb] implementation\n" \ "Ideal for personal note-taking, \"to do\" lists, and any other uses you can think of.\n" \ "!CiWiki is fast and does not require webserver, database mng and php interpreter.\n\n\n" \ "For an example of how a !CiWiki entry looks in text form you can [?edit edit] this page. Also see WikiHelp for infomation on usage and formatting rules. Use The WikiSandbox to experiment.\n" \ "/!CiWiki / is written by [mailto://inphilly@gmail.com Jean-Pierre Redonnet] and released under [http://www.gnu.org GNU] [http://www.gnu.org/copyleft/gpl.html GPL]. \n" \ "Matthew Allum is the original author of /!DidiWiki (2004) \n" #define HOMEREDIRECT "" \ \ "==Redirect yor home page to /html/index.html\n" \ "html=redirect.index.html\n" \ "if you are not automatically redirected, please click on \n" \ "html=index.html\n" \ "\n" #define HELPTEXT "" \ \ "=Quick Guide \n" \ "Top toolbar usage\n" \ "* [?edit Edit] Allows you to edit pages ( see below for rules )\n" \ "* [?delete Delete] Allows you to delete pages\n" \ "* [WikiHome Home] Takes you to the wiki front page\n" \ "* [Index Index] List all the pages in the wiki\n" \ "* [Changes Changes] Lists the pages changed by date\n" \ "* [Create New] Creates a new wiki page by title\n" \ "* [WikiHelp Help] Takes you to this help page\n" \ "\n" \ "Use the text entry box to perform a very simple keyword search on the\n" \ "Wiki contents and page names. Hit return to activate the search.\n" \ " Enter @term to seach term only inside pages or \n" \ " /term to seach term only in page names.\n" \ "\n" \ "Use the WikiSandbox to practice formatting.\n" \ "\n" \ "----\n" \ "=Formatting rules\n" \ "\n" \ "=Top Level Heading\n" \ " =Top Level Heading (H1)\n" \ "==Second Level Heading\n" \ " ==Second Level Heading (H2)\n" \ "More levels \n" \ " === (H3), ==== (H4) etc\n" \ "----\n" \ "The horizontal lines in this page are made with 4 or more dashes:\n" \ " ---- Horizonal line\n" \ "----\n" \ "\n" \ "Paragraphs are separated by an empty line\n" \ "\n" \ "Like this. Another paragraph.\n" \ "\n" \ " Paragraphs are separated by a blank line.\n" \ "\n" \ " Like this. Another paragraph.\n" \ "----\n" \ "*Bold text*, /italic text/, _underscore text_ and -strikethrough-.\n" \ " *Bold text*, /italic text/, _underscore text_ and -strikethrough-.\n" \ "/*Combination of bold and italics*/\n" \ " /*Combination of bold and italics*/\n" \ "----\n" \ "\n" \ "{B}Text color{B} Upper case letter between braces for text color.\n" \ " {B}Text color{B}\n" \ "{g}Background color{g} Lower case letter between braces for background color\n" \ " {g}Background color{g}\n" \ "\n" \ "Colors: {B}B blue{B} {C}C cyan{C} {G}G green{G} {M}M magenta{M} {R}R red{R} {Y}Y yellow{Y}\n" \ "\n" \ "Colors: {b}b blue{b} {c}c cyan{c} {g}g green{g} {m}m magenta{m} {r}r red{r} {y}y yellow{y}\n" \ "----\n" \ "\n" \ "+Highlight+\n" \ " +Highlight+\n" \ "-----\n" \ "\n" \ "WikiLinks are formed by two or more words in /camelcase/.\n" \ " WikiLinks are formed by two or more words in /camelcase/.\n" \ "External links begin with http:// or https://, like https://www.wikipedia.org\n" \ " External links begin with http:// or https://, like https://www.wikipedia.org\n" \ "Forced wiki [links] are a alphanumeric string surrounded by square brackets.\n" \ " Forced wiki [links] are a alphanumeric string surrounded by square brackets.\n" \ "Named http links have text with an !http:// link inside, like [https://www.wikipedia.org Encyclopedia]\n" \ " Named http links have text with an !http:// link inside, like [https://www.wikipedia.org Encyclopedia]\n" \ "Sometimes !WordsShouldNotMakeAWikiLink so put a '! ' beforehand.\n" \ " Sometimes !WordsShouldNotMakeAWikiLink so put a '! ' beforehand.\n" \ "Same thing with !http://foobar.com\n" \ " Same thing with !http://foobar.com\n" \ "Open external links in new tags:\n" \ " {{wwwlink=new_tab}} opens external link in a new tab\n" \ " {{wwwlink=current_tab}} opens external link in a current tab\n" \ "----\n" \ "\n" \ "Links to images display the image:\n" \ "\n" \ " Pictures size and border: {{width=100 height=50 border=2}}\n" \ " Return to the default width, height and border: {{picture=default}}\n" \ "\n" \ "{{width=100 height=50 border=1}}\n" \ "http://www.google.com/images/logo.gif\n" \ " http://www.google.com/images/logo.gif\n" \ "Picture http links have picture with an !http:// link inside, like [http://www.google.com/images/logo.gif http://www.google.com]\n" \ " Picture http links have picture with an !http:// link inside, like [http://www.google.com/images/logo.gif http://www.google.com]\n" \ "----\n" \ "\n" \ " Video youtube, videomotion, veoh, vimeo, flash... embedded:\n" \ " youtube=http://www.youtube.com/v/---adress--- \n" \ " dailymotion=http://www.dailymotion.com/swf/---adress--- \n" \ " vimeo=http://..... veoh=http://..... flash=http://.....\n" \ " line starts with youtube... and terminate the adress with a space\n" \ "----\n" \ "\n" \ "Unordered lists begin with a '* '. The number of asterisks determines the level:\n" \ "* foo\n" \ "* bar\n" \ "** boom\n" \ "** bam\n" \ "* baz\n" \ "\n" \ " * foo\n" \ " * bar\n" \ " ** boom\n" \ " ** bam\n" \ " * baz\n" \ "\n" \ "Ordered lists work the same, but use a '#'\n" \ "----\n" \ "Tables begin the line with a '|' and before every new column after.\n" \ "\n" \ "| row:1,col:1 | row:1,col:2\n" \ "| row:2,col:1 | row:2,col:2\n" \ " | row:1,col:1 | row:1,col:2\n" \ " | row:2,col:1 | row:2,col:2\n" \ "---\n" \ "Quotation begins with ' \n" \ "\n" \ " 'I had a monumental idea this morning, but I didn't like it\n" \ "'I had a monumental idea this morning, but I didn't like it\n" \ "----\n" \ " {{expand}} and {{collapse}} use javascript and must be enabled in the user's browser.\n"\ "Expand text\n" \ "\n" \ " {{expand}} or {{expand=your label here}}\n" \ " text, links, images\n" \ " {{-expand}}\n" \ "\n" \ "{{expand}}\n" \ "text, links: http://www.google.com\n" \ "{{-expand}}\n" \ "\nImbricated\n" \ " {{expand}}\n" \ " Some text\n" \ " {{expand}}\n" \ " More text\n" \ " {{-expand}}\n" \ " {{-expand}}\n" \ "{{expand}}\n" \ "Some text\n" \ "{{expand}}\n" \ "More text\n" \ "{{-expand}}\n" \ "{{-expand}}\n" \ "----\n" \ "Collapse text, can be imbricated too.\n" \ "\n" \ " {{collapse}} or {{collapse=your label here}}\n" \ " text, links, images\n" \ " {{-collapse}}\n" \ "\n" \ "{{collapse}}\n" \ "text, links: http://www.google.com\n" \ "{{-collapse}}\n" \ "----\n" \ "Simple form: ToDo list\n" \ " {{entry}} or {{entry tiny/small/medium/large/huge/area date/date2}}\n" \ " !{{data}} (remove ! before this tag)\n" \ " Entries are added in the page after the tag data\n" \ " {{delete}} deletes the selected field\n" \ " {{select}} provides a box with a list of several formating possibilities.\n" \ "{{entry}}\n" \ "{{data}}\n" \ "{{delete}}{{select}}\n" \ "----\n" \ " Table of contents {{toc}} can be between collapse or expand\n" \ "{{collapse=Table of contents}}{{toc}}{{-collapse}}\n" \ "----\n" \ " .\n" \ "\n" \ "----\n" \ "Lines prefixed with a space are unformatted ( Like examples on this page )\n" \ "\n" \ "----\n" \ " There is a `keyword` in this line.\n" \ "There is a `keyword` in this line.\n" \ "\n" \ "----\n" \ " Schedule text with {{schedule=date;show this text if date is true;show this text if false}}\n" \ " or {{schedule=date;show it is true}} or {{schedule=date;;show it is false}}\n" \ " date can be the day of the week Monday...Sunday or the month January...December\n" \ " or the day of he month 1,2,...31 or the month + the day of he month, ex. July 04\n" \ " Example: {{schedule=Monday;+It's Monday Deal with it.+}}\n" \ "{{schedule=Monday;+It's Monday. Deal with it.+}}\n" \ " {{schedule=d/m/n}} set the date of the page to perform a test\n" \ " d=0...6 (Sunday...Saturday) m=1...12 (January...December) n=1...31 \n" \ "\n" \ "----\n" \ " Define a private zone in the page with {{private}}\n" \ " Login is required to show after this tag\n" \ "{{private}}\n" \ " This text is hidded if you are not logged!\n" \ "\n" \ "----\n" \ " To upload file or image into the server with {{upload}}\n" \ "Upload your file below then go to Index [Index?Folder=images images] \n" \ "or [Index?Folder=files files] to check your file uploaded:\n" \ "{{upload}}\n" \ "\n" \ "----\n" \ #define TEMPLATE01 "" \ \ "==This is the template N°1\n\n" \ "File name: 01.template and name of the page: 01.template\n\n" \ "You can create 5 templates: 01.template, 02.template, 03.template, 04.template, 05.template.\n\n" \ "To create the template 2: Click on *New* and enter as file name 02.template and so forth for templates 3...5.\n\n" \ "To modify any template: Click on *Index*, look for the 0x.template (x=1...5) and click on *Edit* (Upper-left).\n" \ "To delete any template: Click on *Index*, look for the 0x.template and click on *Delete* (Upper-left).\n" \ "If you delete this template (01.template) then Ciwiki will recreate it during its restart.\n\n" \ "Enjoy! \n" #define STYLESHEET \ \ "body {\n" \ " font-family: Verdana, Arial, Helvetica, sans-serif;\n" \ " font-size: 90%; \n" \ " color: #333333;\n" \ " margin: 2px;\n" \ " padding: 2px;\n" \ "}\n" \ "\n" \ "#header {\n" \ " font-size: 90%;\n" \ " background-color: #eef;\n" \ " border: 1px solid #aaa;\n" \ " font-family: Verdana, Arial, Helvetica, sans-serif;\n" \ " padding: 5px;\n" \ " margin-bottom:20px;\n" \ "}\n" \ "#header input {\n" \ " margin:0px;\n" \ " padding: 0;\n" \ " background-color: White;\n" \ " border: 1px solid #aaaaaa;\n" \ " font-size: 90%;\n" \ "}\n" \ "\n" \ "#footer {\n" \ " font-size: 10px;\n" \ " color: #ddd;\n" \ " margin-top:40px;\n" \ " width: 100%;\n" \ " text-align: center;\n" \ "}\n" \ "table.wikitable { background-color: #fff; border: 1px solid #aaa; }\n" \ "table.wikitable td { background-color: #fff; border: 1px solid #aaa; }\n" \ "\n" \ "pre {\n" \ " font-family: monospace;\n" \ " background-color: #eee;\n" \ " padding: 2px;\n" \ " padding-left: 10px;\n" \ " margin-left: 20px;\n" \ " margin-right: 20px;\n" \ "}\n" \ "\n" \ "hr {\n" \ " height: 1px;\n" \ " color: #aaaaaa;\n" \ " background-color: #aaaaaa;\n" \ " border: 0;\n" \ " margin: 0.2em 5px 0.2em 5px;\n" \ "}\n" \ "\n" \ "form {\n" \ " border: none;\n" \ " margin: 0;\n" \ "}\n" \ "\n" \ "textarea {\n" \ " border: 1px solid #aaaaaa;\n" \ " color: Black;\n" \ " background-color: white;\n" \ " width: 99%;\n" \ " padding: 0.1em;\n" \ " overflow: auto;\n" \ "}\n" \ "\n" \ "input {\n" \ " margin-top:1px;\n" \ " padding: 0.4em;\n" \ " background-color: White;\n" \ " border: 1px solid #aaaaaa;\n" \ "}\n" \ "\n" \ "a, ulink{\n" \ " color: #333;\n" \ " text-decoration:none;\n" \ " border-bottom: 1px #333 dotted;\n" \ " display: inline;\n" \ " }\n" \ "\n" \ "a:hover {\n" \ " color: #333;\n" \ " text-decoration: None;\n" \ " border-bottom: 1px #000 solid;\n" \ " }\n" \ "\n" \ "a:visited {\n" \ " color: #333;\n" \ "}\n" \ "\n" \ "#wrapper {\n" \ "text-align:left;\n" \ "margin:0 auto;\n" \ "display: inline-block;\n" \ "min-height:10px;\n" \ "border:1px solid #ccc;\n" \ "padding:5px;\n" \ "}\n" \ "\n" \ "#myvar {\n" \ "border:1px solid #ccc;\n" \ "background:#f2f2f2;\n" \ "padding:5px;\n" \ "}\n" \ "\n" \ /* use xxd -i favicon.png to generate * png favicon is ok with Firefox >=1.0, Chrome, Opera >=7.0, Safari >=4.0 * png favicon is ok with IE >= 11 */ #define FAVICONDATAMAX 1024 //enough memory to load favicon.ico file (wiki_init() in wiki.c) unsigned char FaviconData[FAVICONDATAMAX+1] = { 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x08, 0x06, 0x00, 0x00, 0x00, 0x1f, 0xf3, 0xff, 0x61, 0x00, 0x00, 0x00, 0x04, 0x73, 0x42, 0x49, 0x54, 0x08, 0x08, 0x08, 0x08, 0x7c, 0x08, 0x64, 0x88, 0x00, 0x00, 0x00, 0x09, 0x70, 0x48, 0x59, 0x73, 0x00, 0x00, 0x0b, 0x13, 0x00, 0x00, 0x0b, 0x13, 0x01, 0x00, 0x9a, 0x9c, 0x18, 0x00, 0x00, 0x00, 0x1d, 0x74, 0x45, 0x58, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x00, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x54, 0x68, 0x65, 0x20, 0x47, 0x49, 0x4d, 0x50, 0xef, 0x64, 0x25, 0x6e, 0x00, 0x00, 0x00, 0x70, 0x49, 0x44, 0x41, 0x54, 0x38, 0x8d, 0xc5, 0x52, 0xc1, 0x11, 0x80, 0x30, 0x08, 0x33, 0x9c, 0x13, 0x74, 0xff, 0x19, 0xbb, 0x02, 0xbe, 0xea, 0x21, 0x26, 0xa0, 0xe7, 0xc3, 0x7c, 0x5a, 0x52, 0x9a, 0xd2, 0x00, 0xa6, 0xbb, 0x6f, 0x1f, 0xb0, 0x33, 0x72, 0x00, 0xe7, 0x7e, 0x36, 0xfa, 0x37, 0x81, 0x01, 0xd0, 0x4b, 0x8a, 0x37, 0xf5, 0x72, 0x86, 0xaa, 0xc4, 0x28, 0x4b, 0xa0, 0xc4, 0x2f, 0x02, 0xdd, 0x7f, 0x19, 0xc0, 0xba, 0x90, 0x4d, 0xac, 0x4c, 0xa5, 0x02, 0x6f, 0xf0, 0xd8, 0x83, 0x52, 0x20, 0x1b, 0xb4, 0xe2, 0x6e, 0x6d, 0x2b, 0x50, 0xa6, 0x46, 0xbe, 0x9c, 0x83, 0x18, 0xc7, 0x41, 0xa2, 0x15, 0xac, 0x04, 0xd5, 0x6f, 0x75, 0x66, 0x31, 0xa1, 0x2a, 0x5b, 0xe1, 0xff, 0x36, 0x1e, 0x5a, 0xb4, 0x3a, 0x45, 0x1e, 0x2f, 0xe4, 0xe1, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82 }; unsigned int FaviconDataLen = 247; #endif ./ciwiki-3.0.4/src/wikichanges.h000777 001750 001750 00000000375 11403210620 020751 0ustar00jpredonnetjpredonnet000000 000000 #ifndef _HAVE_WIKICHANGES_HEADER #define _HAVE_WIKICHANGES_HEADER void wiki_show_changes_page(HttpResponse *res); void wiki_show_diff_between_pages(HttpResponse *res, char *page, int mode); void wiki_show_changes_page_rss(HttpResponse *res); #endif ./ciwiki-3.0.4/src/wikilogin.h000777 001750 001750 00000001015 11377275724 020473 0ustar00jpredonnetjpredonnet000000 000000 #ifndef _HAVE_WIKILOGIN_HEADER #define _HAVE_WIKILOGIN_HEADER void wikilogin_setpermission(char *ipsrc, char *username); int wikilogin_getpermission(char *ipsrc); int wikilogin_isvalid(char *username, char *password, char *email, char *code, char *newaccount, char *ipsrc); char *wikirac_isvalid(char *command, char *ipsrc); void wikilogin_logoff(char *ipsrc); char *wikilogin_username(char *ipsrc); int wikilogin_chgpwd(char *ipsrc, char *password, char *newpassword); #endif ./ciwiki-3.0.4/src/ci.c000777 001750 001750 00000021525 14305327111 017053 0ustar00jpredonnetjpredonnet000000 000000 #include "ci.h" static int debug; int lockdown_delay; //declared external in wikilogin.c int lockdown_cnt; //declared external in wikilogin.c int hostlogin; //declared external in wikilogin.c int nologin; //declared external in wikilogin.c int dosendmail; //declared external in wikilogin.c int lgindex; //declared external in wiki.c int loginform; //declared external in wiki.c int port = 8000; //declared external in wikilogin.c long int max_upload_size = 10; // in kbytes; declared external in http.c int Exec_allowed=0; //declared external in wiki.c int Upload_allowed=1; //declared external in wiki.c int indexShowWhat = 15; //declared external in wiki.c int secureLogin = 0; //declared external in wiki.c char* secureKey = NULL; //declared external in wiki.c int usage() { fprintf(stderr, "Usage: ciwiki [options]\n"); fprintf(stderr, " -a, --autologin : login localhost automatically\n"); fprintf(stderr, " -n, --nologin : login automatically all users\n"); fprintf(stderr, " -L, --lockcount : N wrong password before lockdown\n"); fprintf(stderr, " -D, --lockdelay : lockdown duration after N wrong pwd\n"); fprintf(stderr, " -d, --debug : debug mode, listens to requests from stdin\n"); fprintf(stderr, " -h, --home : specify ciwiki's home directory\n"); fprintf(stderr, " -l, --listen : specify IP address\n"); fprintf(stderr, " -p, --port : specify port number \n"); fprintf(stderr, " -r=, --restore= : -r=help,home,style :restore the default WikiHelp, WikiHome, Styles.css\n"); fprintf(stderr, " -t, --html : redirect WikiHome to /html/index.html page\n"); fprintf(stderr, " --help : display this help message\n"); fprintf(stderr, " -s, --sendmail : run sendmail script automatically\n"); fprintf(stderr, " -i, --index : override the default index length\n"); fprintf(stderr, " -I, --Index : Index shows 1:images 2:files 4:html 8:Templates\n"); fprintf(stderr, " -m, --maxsize : override the default upload max file size\n"); fprintf(stderr, " --secure : Restrict wiki access with login.\n"); fprintf(stderr, " --secure=key=1234 : Restrict wiki access with login; username and pwd are encrypted with a key (1234).\n"); fprintf(stderr, " -u, --unmasked : login password is visible\n"); fprintf(stderr, " -v, --version : display the version\n"); exit(1); } int main(int argc, char **argv) { HttpRequest *req = NULL; int c; char *ciwiki_home = NULL; unsigned int restore_Wiki = 0; unsigned int create_htmlHome = 0; struct in_addr address; /* default values */ debug = 0; //normal mode hostlogin = 0; //host will have to login nologin = 0; //users will have to login. dosendmail = 0; //don't send systematically email at each registration lgindex = 20; //print 20 files before to make a new index box loginform = 0; //use LOGINFORM (see wikitext.h) => password is hidden lockdown_cnt = 3; //after 3 wrong password attempts, login is lockdown lockdown_delay = 3; //after several wrong password, login is lockdown for 3 minutes /* by default bind server to "0.0.0.0" */ address.s_addr = inet_addr("0.0.0.0"); while (1) { static struct option long_options[] = { {"autologin", no_argument, 0, 'a'}, {"nologin", no_argument, 0, 'n'}, {"lockcount",required_argument,0, 'L'}, {"lockdelay",required_argument,0, 'D'}, {"debug", no_argument, 0, 'd'}, {"version", no_argument, 0, 'v'}, {"listen", required_argument, 0, 'l'}, {"port", required_argument, 0, 'p'}, {"home", required_argument, 0, 'h'}, {"restore",required_argument, 0, 'r'}, {"html", no_argument, 0, 't'}, {"sendmail", no_argument, 0, 's'}, {"index", required_argument, 0, 'i'}, {"Index", required_argument, 0, 'I'}, {"maxsize",required_argument, 0, 'm'}, {"unmasked", no_argument, 0, 'u'}, {"exe", no_argument, 0, 8 }, {"secure", optional_argument, 0, 9 }, {"help", no_argument, 0, 10}, {0, 0, 0, 0} }; /* getopt_long stores the option index here */ int option_index = 0; c = getopt_long (argc, argv, "anL:D:dl:p:h:i:I:m:r:tsvu", long_options, &option_index); /* detect the end of the options */ if (c == -1) break; switch (c) { case 0: break; case 'u': //password is visible during login loginform=2; break; case 'i': //set index length lgindex = atoi(optarg); if (lgindex==0) lgindex=20; fprintf(stderr,"Index length = %i\n",lgindex); break; case 'I': //Index shows images, html, files, templates indexShowWhat = atoi(optarg); if (indexShowWhat > 15) indexShowWhat=15; if (indexShowWhat < 0) indexShowWhat=0; fprintf(stderr,"Index mode = %i\n", indexShowWhat); break; case 'm': //max file size to upload max_upload_size = atol(optarg); if (max_upload_size<0) max_upload_size=0; fprintf(stderr,"Max size allowed to upload = %ld kBytes\n",max_upload_size); break; case 'a': //autologin for the localhost hostlogin = 1; fprintf(stderr,"Localhost is logged in.\n"); break; case 'n': //autologin any user nologin = 1; fprintf(stderr,"Any user registrered or not will be logged in.\n"); break; case 'L': //login, lockdown count lockdown_cnt = atoi(optarg); if (lockdown_cnt < 0) lockdown_cnt=0; fprintf(stderr,"Lockdown after %i password attempts.\n",lockdown_cnt); break; case 'D': //login, lockdown duration lockdown_delay = atoi(optarg); if (lockdown_delay < 0) lockdown_delay=0; fprintf(stderr,"Lockdown during %i minutes.\n",lockdown_delay); break; case 'd': debug = 1; break; case 'v': printf("CiWiki - version %s\n\n",VERSION); return 0; case 'p': //default port is 8000 port = atoi(optarg); break; case 'h': //default home directory is ~/.ciwiki ciwiki_home = optarg; break; case 'l': //listen a inet address if(inet_aton(optarg,&address) == 0) { fprintf(stderr, "ciwiki: invalid ip address \"%s\"\n", optarg); exit(1); } else address.s_addr = inet_addr(optarg); break; case 'r': //rewrite Wikihelp, Wikihome and styles.css if ( strstr(optarg,"help") ) restore_Wiki|= 1; if ( strstr(optarg,"home") ) restore_Wiki|= 2; if ( strstr(optarg,"style") ) restore_Wiki|= 4; fprintf(stderr, "Restore wiki code:%u\n", restore_Wiki); break; case 't': //redirect Wikihome to /html/index.html fprintf(stderr,"\nWarning! The current Wikihome will be lost! Rename it first.\n Ok? (y) "); if( toupper(getchar()) == 'Y'){ create_htmlHome=1; fprintf(stderr,"Redirection to /html/index.html is enabled.\n"); stdin = freopen(NULL,"r",stdin); //cleanup stdin to remove \n } else { fprintf(stderr,"\nCanceled!\n"); exit(0); } break; case 's': dosendmail= 1; break; case 8: fprintf(stderr,"\nAllow to execute script from remote client. Warning: Security issue!\n"); Exec_allowed = 1; break; case 9: secureLogin = 1; if( optarg && strstr(optarg, "key=") ) { secureKey = NULL; if( *(strchr(optarg,'=') + 1) ) { secureKey = (char*)malloc( 10*sizeof(char) ); assert( secureKey != NULL ); strncpy( secureKey, strchr(optarg,'=')+1, 8 ); *(secureKey+7)= '\0'; } } fprintf(stderr, "Secure login is ON Key is '%s'\n", (secureKey)? secureKey : "NO access key!"); break; case 10: usage(); break; default: usage(); } } //end while if( secureKey ) fprintf(stderr,"Test code/decode access login,\nshould display: {([0123456789,;:+-*/@It_is_working!?])},\nresult:%s\n", decode(secureKey, code(secureKey, "{([0123456789,;:+-*/@It_is_working!?])}")) ); wiki_init(ciwiki_home,restore_Wiki,create_htmlHome); /* create folders... */ if (debug) { req = http_request_new(); /* reads request from stdin */ } else { req = http_server(address, port); /* forks here - http_request_new will handle a single http request*/ } /* the child continues here */ wiki_handle_http_request(req); /* proceeds request (main function in wiki.c) */ /* the child terminates there */ return 0; } ./ciwiki-3.0.4/Makefile.in000664 001750 001750 00000057751 14274674000 017606 0ustar00jpredonnetjpredonnet000000 000000 # Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ $(am__configure_deps) $(am__DIST_COMMON) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ cscope distdir distdir-am dist dist-all distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ $(LISP)config.h.in # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in AUTHORS \ COPYING ChangeLog INSTALL NEWS README compile depcomp \ install-sh missing DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best DIST_TARGETS = dist-gzip distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GCC_FLAGS = @GCC_FLAGS@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = src scripts docs EXTRA_DIST = styles.css ciwiki.png ciwiki.conf docs/ciwiki.man all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @test -f $@ || rm -f stamp-h1 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscope: cscope.files test ! -s cscope.files \ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) clean-cscope: -rm -f cscope.files cscope.files: clean-cscope cscopelist cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-tarZ: distdir @echo WARNING: "Support for distribution archives compressed with" \ "legacy program 'compress' is deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir @echo WARNING: "Support for shar distribution archives is" \ "deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__post_remove_distdir) dist dist-all: $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build/sub \ && ../../configure \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ --srcdir=../.. --prefix="$$dc_install_base" \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile config.h installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(am__recursive_targets) all install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--refresh check check-am clean clean-cscope clean-generic \ cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \ distcheck distclean distclean-generic distclean-hdr \ distclean-tags distcleancheck distdir distuninstallcheck dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am .PRECIOUS: Makefile snapshot: $(MAKE) dist distdir=$(PACKAGE)-snapshot-`date +"%Y%m%d"` # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ./ciwiki-3.0.4/stamp-h1000664 001750 001750 00000000027 14274674432 017107 0ustar00jpredonnetjpredonnet000000 000000 timestamp for config.h ./ciwiki-3.0.4/INSTALL000644 001750 001750 00000036614 14264013246 016561 0ustar00jpredonnetjpredonnet000000 000000 Installation Instructions ************************* Copyright (C) 1994-1996, 1999-2002, 2004-2016 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without warranty of any kind. Basic Installation ================== Briefly, the shell command './configure && make && make install' should configure, build, and install this package. The following more-detailed instructions are generic; see the 'README' file for instructions specific to this package. Some packages provide this 'INSTALL' file but do not implement all of the features documented below. The lack of an optional feature in a given package is not necessarily a bug. More recommendations for GNU packages can be found in *note Makefile Conventions: (standards)Makefile Conventions. The 'configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a 'Makefile' in each directory of the package. It may also create one or more '.h' files containing system-dependent definitions. Finally, it creates a shell script 'config.status' that you can run in the future to recreate the current configuration, and a file 'config.log' containing compiler output (useful mainly for debugging 'configure'). It can also use an optional file (typically called 'config.cache' and enabled with '--cache-file=config.cache' or simply '-C') that saves the results of its tests to speed up reconfiguring. Caching is disabled by default to prevent problems with accidental use of stale cache files. If you need to do unusual things to compile the package, please try to figure out how 'configure' could check whether to do them, and mail diffs or instructions to the address given in the 'README' so they can be considered for the next release. If you are using the cache, and at some point 'config.cache' contains results you don't want to keep, you may remove or edit it. The file 'configure.ac' (or 'configure.in') is used to create 'configure' by a program called 'autoconf'. You need 'configure.ac' if you want to change it or regenerate 'configure' using a newer version of 'autoconf'. The simplest way to compile this package is: 1. 'cd' to the directory containing the package's source code and type './configure' to configure the package for your system. Running 'configure' might take a while. While running, it prints some messages telling which features it is checking for. 2. Type 'make' to compile the package. 3. Optionally, type 'make check' to run any self-tests that come with the package, generally using the just-built uninstalled binaries. 4. Type 'make install' to install the programs and any data files and documentation. When installing into a prefix owned by root, it is recommended that the package be configured and built as a regular user, and only the 'make install' phase executed with root privileges. 5. Optionally, type 'make installcheck' to repeat any self-tests, but this time using the binaries in their final installed location. This target does not install anything. Running this target as a regular user, particularly if the prior 'make install' required root privileges, verifies that the installation completed correctly. 6. You can remove the program binaries and object files from the source code directory by typing 'make clean'. To also remove the files that 'configure' created (so you can compile the package for a different kind of computer), type 'make distclean'. There is also a 'make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. 7. Often, you can also type 'make uninstall' to remove the installed files again. In practice, not all packages have tested that uninstallation works correctly, even though it is required by the GNU Coding Standards. 8. Some packages, particularly those that use Automake, provide 'make distcheck', which can by used by developers to test that all other targets like 'make install' and 'make uninstall' work correctly. This target is generally not run by end users. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the 'configure' script does not know about. Run './configure --help' for details on some of the pertinent environment variables. You can give 'configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here is an example: ./configure CC=c99 CFLAGS=-g LIBS=-lposix *Note Defining Variables::, for more details. Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you can use GNU 'make'. 'cd' to the directory where you want the object files and executables to go and run the 'configure' script. 'configure' automatically checks for the source code in the directory that 'configure' is in and in '..'. This is known as a "VPATH" build. With a non-GNU 'make', it is safer to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use 'make distclean' before reconfiguring for another architecture. On MacOS X 10.5 and later systems, you can create libraries and executables that work on multiple system types--known as "fat" or "universal" binaries--by specifying multiple '-arch' options to the compiler but only a single '-arch' option to the preprocessor. Like this: ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CPP="gcc -E" CXXCPP="g++ -E" This is not guaranteed to produce working output in all cases, you may have to build one architecture at a time and combine the results using the 'lipo' tool if you have problems. Installation Names ================== By default, 'make install' installs the package's commands under '/usr/local/bin', include files under '/usr/local/include', etc. You can specify an installation prefix other than '/usr/local' by giving 'configure' the option '--prefix=PREFIX', where PREFIX must be an absolute file name. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you pass the option '--exec-prefix=PREFIX' to 'configure', the package uses PREFIX as the prefix for installing programs and libraries. Documentation and other data files still use the regular prefix. In addition, if you use an unusual directory layout you can give options like '--bindir=DIR' to specify different values for particular kinds of files. Run 'configure --help' for a list of the directories you can set and what kinds of files go in them. In general, the default for these options is expressed in terms of '${prefix}', so that specifying just '--prefix' will affect all of the other directory specifications that were not explicitly provided. The most portable way to affect installation locations is to pass the correct locations to 'configure'; however, many packages provide one or both of the following shortcuts of passing variable assignments to the 'make install' command line to change installation locations without having to reconfigure or recompile. The first method involves providing an override variable for each affected directory. For example, 'make install prefix=/alternate/directory' will choose an alternate location for all directory configuration variables that were expressed in terms of '${prefix}'. Any directories that were specified during 'configure', but not in terms of '${prefix}', must each be overridden at install time for the entire installation to be relocated. The approach of makefile variable overrides for each directory variable is required by the GNU Coding Standards, and ideally causes no recompilation. However, some platforms have known limitations with the semantics of shared libraries that end up requiring recompilation when using this method, particularly noticeable in packages that use GNU Libtool. The second method involves providing the 'DESTDIR' variable. For example, 'make install DESTDIR=/alternate/directory' will prepend '/alternate/directory' before all installation names. The approach of 'DESTDIR' overrides is not required by the GNU Coding Standards, and does not work on platforms that have drive letters. On the other hand, it does better at avoiding recompilation issues, and works well even when some directory options were not specified in terms of '${prefix}' at 'configure' time. Optional Features ================= If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving 'configure' the option '--program-prefix=PREFIX' or '--program-suffix=SUFFIX'. Some packages pay attention to '--enable-FEATURE' options to 'configure', where FEATURE indicates an optional part of the package. They may also pay attention to '--with-PACKAGE' options, where PACKAGE is something like 'gnu-as' or 'x' (for the X Window System). The 'README' should mention any '--enable-' and '--with-' options that the package recognizes. For packages that use the X Window System, 'configure' can usually find the X include and library files automatically, but if it doesn't, you can use the 'configure' options '--x-includes=DIR' and '--x-libraries=DIR' to specify their locations. Some packages offer the ability to configure how verbose the execution of 'make' will be. For these packages, running './configure --enable-silent-rules' sets the default to minimal output, which can be overridden with 'make V=1'; while running './configure --disable-silent-rules' sets the default to verbose, which can be overridden with 'make V=0'. Particular systems ================== On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC is not installed, it is recommended to use the following options in order to use an ANSI C compiler: ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" and if that doesn't work, install pre-built binaries of GCC for HP-UX. HP-UX 'make' updates targets which have the same time stamps as their prerequisites, which makes it generally unusable when shipped generated files such as 'configure' are involved. Use GNU 'make' instead. On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot parse its '' header file. The option '-nodtk' can be used as a workaround. If GNU CC is not installed, it is therefore recommended to try ./configure CC="cc" and if that doesn't work, try ./configure CC="cc -nodtk" On Solaris, don't put '/usr/ucb' early in your 'PATH'. This directory contains several dysfunctional programs; working variants of these programs are available in '/usr/bin'. So, if you need '/usr/ucb' in your 'PATH', put it _after_ '/usr/bin'. On Haiku, software installed for all users goes in '/boot/common', not '/usr/local'. It is recommended to use the following options: ./configure --prefix=/boot/common Specifying the System Type ========================== There may be some features 'configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the _same_ architectures, 'configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the '--build=TYPE' option. TYPE can either be a short name for the system type, such as 'sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file 'config.sub' for the possible values of each field. If 'config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should use the option '--target=TYPE' to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with '--host=TYPE'. Sharing Defaults ================ If you want to set default values for 'configure' scripts to share, you can create a site shell script called 'config.site' that gives default values for variables like 'CC', 'cache_file', and 'prefix'. 'configure' looks for 'PREFIX/share/config.site' if it exists, then 'PREFIX/etc/config.site' if it exists. Or, you can set the 'CONFIG_SITE' environment variable to the location of the site script. A warning: not all 'configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to 'configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the 'configure' command line, using 'VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc causes the specified 'gcc' to be used as the C compiler (unless it is overridden in the site shell script). Unfortunately, this technique does not work for 'CONFIG_SHELL' due to an Autoconf limitation. Until the limitation is lifted, you can use this workaround: CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash 'configure' Invocation ====================== 'configure' recognizes the following options to control how it operates. '--help' '-h' Print a summary of all of the options to 'configure', and exit. '--help=short' '--help=recursive' Print a summary of the options unique to this package's 'configure', and exit. The 'short' variant lists options used only in the top level, while the 'recursive' variant lists options also present in any nested packages. '--version' '-V' Print the version of Autoconf used to generate the 'configure' script, and exit. '--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally 'config.cache'. FILE defaults to '/dev/null' to disable caching. '--config-cache' '-C' Alias for '--cache-file=config.cache'. '--quiet' '--silent' '-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to '/dev/null' (any error messages will still be shown). '--srcdir=DIR' Look for the package's source code in directory DIR. Usually 'configure' can determine that directory automatically. '--prefix=DIR' Use DIR as the installation prefix. *note Installation Names:: for more details, including other options available for fine-tuning the installation locations. '--no-create' '-n' Run the configure checks, but stop before creating any output files. 'configure' also accepts some other, not widely useful, options. Run 'configure --help' for more details. ./ciwiki-3.0.4/ChangeLog000777 001750 001750 00000052642 14305561120 017303 0ustar00jpredonnetjpredonnet000000 000000 2022-08-08 Jean-Pierre Redonnet * Changed: argument --secure=key="access_key_alphanum" to require to login first with a key. This key is composed of alphanumeric chars and is used to encrypt the user name and the password. if the argument --secure is used without key, the username and password are transmitted in clear to the server (ciwiki). * Updated Text encryption: Vulnerability corrected. * Added the possibility to edit encrypted text. * configure.ac updated to 3.0.4 2022-08-08 Jean-Pierre Redonnet * Added: area and date2 in {{entry area date2}} area: draw a text area of 4 lines; date2 returns date with the format mm/dd/yy. * Changed: brackets () are replaced by braces {} for background color. Lower case letter inside braces set backgroung color and upper case letter set text color. Letters recognized are B or b (for blue) , R or r (for red), Y or y (for yellow), G or g (for green), C or c (for cyan), M or m (for magenta). * P for pink has been replaced by M or m for magenta. * Added: {{select}} to provide a box with a list of several formating possibilities when {{entry}} is used. * wikihelp updated. * configure.ac updated to 3.0.3 2022-08-07 Jean-Pierre Redonnet * Changed: Login is required to show the images, html and files folders inside the Index page. * Added: argument -I=0...15 to show the images folder, html folder, files folder, Template files. * Added: argument --secure to require to login first. * Corrected: Security issue. The client cannot run a script on the server (default setting). To allow running script, ciwiki must be started with the argument --exec or -X. * Corrected: File upload size is limited at 10KB by default. Use the argument -m to increase this size (or -m 0 to set at 0KB). * Changed: Login required to upload file. * Corrected: Bug in upload routine. * configure.ac updated to 3.0.2 2022-07-28 Jean-Pierre Redonnet * Index is sorted by name, click on this link [ a,b,c,d,e,f... ] (inside the Index page) or sorted by date, click on this link [ 1/1...31/12 ]. * To seach only the name of the pages, enter /expression_to_search, to seach only inside the wiki content, enter @expression_to_search, to seach both on name and content, enter expression_to_search (withoyt / or @). * configure.ac updated to 3.0.1 2022-07-16 Jean-Pierre Redonnet *** MAJOR CHANGE *** Version 3.x.x comes from version 2.0.7 * Changed: header, login form... are now files named PageHeader.htm, LogInForm.htm... Defaults files *.htm are saved inside ./ciwiki/configuration during the first run of ciwiki. They can be modified with a text editor and they will be reloaded when ciwiki will restart. * New feature: Text encryption (experimental). Plain text with limited formating can be encrypted/decrypted. Encryption/decryption is done one the client computer (javascript must be enabled). * configure.ac updated to 3.0.0 ----------------------------------------------------------------------------------------- 2022-07-15 Jean-Pierre Redonnet * Modified: LOGINFORM & NEWLOGINFORM inside wikitext.h * Added an example of template providing some explanation about templates: 01.template (TEMPLATE01 inside wikitext.h). * Updated: README * configure.ac updated to 2.0.7 2022-07-10 Jean-Pierre Redonnet * Added: login lockdown after several wrong password attempts. -L nn : to setup the number of attempts before lockdown (default is 3). -D nn : to setup the lockdown duration (default is 4 minutes). * configure.ac updated to 2.0.6 2016-02-20 Jean-Pierre Redonnet * Added: favicon.ico file can be loaded at startup. (instruction in /docs/FAVICON) * configure.ac updated to 2.0.5 2015-07-17 Jean-Pierre Redonnet * Added templates (up to 5 templates are possible) 1st: Create a template with this name: 01.template in 'Create New Page' When your templates are created : 2nd: Enter the name of the page and select the template in 'Create New Page' (Five template names are possible: 01.template,02.template,03.template,04.template,05.template) * Added image floating, examples: {{left}} or {{width=200 height=300 border= 2 right}} {{default}} to reset * Added: {{upload}} to upload file into the server. * pic,jpeg,gif,png stored in .ciwiki/images * htm,html stored in .ciwiki/html * txt,doc,pdf,xls,zip stored in .ciwiki/files * Changed: Index has link to the images and files folders * Updated: WikiHelp * configure.ac updated to 2.0.4 2015-02-20 Jean-Pierre Redonnet * notifynewuser.sh argument -p #port (ciwiki provides the argument -p to run this script) * file ~/messagenewuser.txt allows to customize the email sent to the new users. * check_public_ip.sh looks for the public ip address (thru the website iconfig.me/ip) * https link are accepted * uppercase GIF,JPG,JPEG,PNG are accepted. * able to serve html pages stored in ~/.ciwiki/html/ * html=.... creates a link to a html page stored in ~/.ciwiki/html/ * startup option -t or --html (ciwiki -t or ciwiki --html), then WikiHome redirects to /html/index.html * configure.ac updated to 2.0.3 2015-02-10 Jean-Pierre Redonnet * {wwwlink=new_tag}} and {{wwwlink=current_tag}} are renamed {wwwlink=new_tab}} and {{wwwlink=current_tab}} * New tag {{schedule=date;text if true;text if false}} * Makefile added in /scripts (to install notifynewuser.sh in /usr/local/libexec) * Makefile added in /docs (to install ciwiki.man) * notifynewuser.sh changed to accept inet addr: and inet adr: * configure.ac updated to 2.0.2 2015-01-28 Jean-Pierre Redonnet * bug in configure.ac is fixed. * configure.ac updated to 2.0.1 * documentation is updated. 2015-01-23 Jean-Pierre Redonnet it's easier to build binary package. But several changes were required: * binary is renamed ciwiki * working folder is renamed ./ciwiki * script finish_install is not required anymore Configure.ac updated to 2.0.0 ============================================================================ WARNING! ciwiki >= 2.0.0 are not strictly compatible with the previous versions: - executable file didiwiki is renamed ciwiki - working folder has changed for ./ciwiki - notifynewuser.sh has moved to /usr/local/libexec (ciwiki >= 2.0.2) ============================================================================ 2014-12-06 Jean-Pierre Redonnet * password field for login is masked (default setting) * masked/unmasked password with the option -u For example: didiwiki -u * pack renamed 1.7.6 2014-09-05 Jean-Pierre Redonnet * ERR_CONTENT_LENGTH_MISMATCH bug is fixed * Configure.ac updated to 1.7.5 * pack renamed 1.7.5 2014-09-04 Jean-Pierre Redonnet * vulnerability bug is fixed. Thanks to Alexander Izmailov and its patch. * CiWiki 1.7.3 didn't compile on FreeBSD 9.0-RELEASE. Thanks to Danyil Bohdan and its bug fix. * Configure.ac updated to 1.7.4 * pack renamed 1.7.4 2013-10-31 Jean-Pierre Redonnet * Password bug is fixed. (!!! There is a new hash function so the previous passwords will not work. Users will have to create a new account.) * Insecure behaviour of 'Changes' + {{private}} is fixed. Now Changes requires to be 'logged in' to prevent the possibility to show private data after the tag {{private}}. * 'you are logged in' is displayed. * Change password routine fixed. * notifynewuser.sh (issue when wlan0) fixed * Configure.ac updated to 1.7.3 * pack renamed 1.7.3 2013-10-26 Jean-Pierre Redonnet * Added: Expandable/collapsible index list Default value is 20 lines per box can be changed with the option -i For example: didiwiki -i 10 'sets 10 lines per box' * Configure.ac updated to 1.7.2 * pack renamed 1.7.2 2010-08-09 Jean-Pierre Redonnet * Fixed finish_install.sh The folder /.didiwiki is created if it doesn't exist. * pack renamed 1.7.0.1 2010-08-08 Jean-Pierre Redonnet * Added: send an images (.png,.gif,.jpg,.jpeg,.pdf) stored in the .didiwiki folder. * Added: can send compressed files (.zip,.tar,.lzma,.bz2,.gz) stored in the .didiwiki folder. * Changed: login.txt file has moved in .didiwiki/permission * Changed: finish_install.sh copies the css, sh and png files, and moves login.txt in .didiwiki/permission * Changed: code hs been a little bit reorganized to make it clearer (i hope). * Fixed: bug when autostarted with option -a * Fixed: notifynewuser.sh uses inet address for the direct link * Configure.ac updated to 1.7.0 2010-06-20 Jean-Pierre Redonnet * Added: For Change command; Diff returns differences between the current and the previous page; Comp returns the previous page but differences are marked. * Added: Tiny help above the edit screen. * Added: Backquote around a keyword,for ex. `print` * Fixed: Bug when file name in 2 words; now spaces are replaced with underline char. * configure.ac updated to 1.6.0 2010-05-24 Jean-Pierre Redonnet * Added: Direct validation of a new registration (link in the email), the user will not have to reenter his username, password, email and the access code. * configure.ac updated version to 1.5.2 2010-05-24 Jean-Pierre Redonnet * Added: Option -a (localhost is logged in automatically) * Added: Option -s (send email afer each new registration, cron is not needed. 'notifynewuser.sh' must be copied in ~/scripts/). * configure.ac updated version to 1.5.1 2010-05-20 Jean-Pierre Redonnet * Added: logoff and change password page. * Modified login and new account page. * Fixed: bugs with login procedure. * Added: Error msg 'permission denied' * Added: automatic access code script and other minor scripts. * configure.ac updated version to 1.5 2010-05-12 Jean-Pierre Redonnet * Added: A todo list where {{entry}} {{data#}} {{save}} {{delete}} will create a form. Entries are saved inside the wiki page. * Added: {{toc}} a table of contents. * Fixed: bugs with {{expand}} and {{collapse}} * configure.ac updated version to 1.4 2010-05-08 Jean-Pierre Redonnet * Bug fix: multiple and imbriqued {{expand}} are possible. {{-expand}} text, pictures, links {{-expand}} //Bugs: please, no space between -expand and the brackets! * Added: {{collapse}} and {{-collapse}} {{collapse}} text, pictures, links {{-collapse}} * Added: {{wwwlink=new_tag}} and {{wwwlink=current_tag}} to open external link in a new tag or in the current tag. * configure.ac updated version to 1.3.1 2010-05-07 Jean-Pierre Redonnet * Option -restore rewrite WikiHelp * Quote added: 'This is a quote * Expand/collapse added: {{expand}} text, pictures, links {{-expand}} * configure.ac updated version to 1.3 !!! Note: Styles of quote and expand are set in styles.css. styles.css must be copied in ./didiwiki or the homedir of didiwiki, and didiwiki program restarted. 2010-03-21 Jean-Pierre Redonnet * Basic login procedure added (permission to edit/delete page) * New tag: {{ private }} Text after this tag is hidden if not logged. * Please read HOWLOGIN for more. * configure.ac updated version to 1.2 2010-03-12 Jean-Pierre Redonnet * didiwiki renamed ciwiki alias didiwiki (program, directory keep the name didiwiki) Possibility to undo page change. * configure.ac updated version to 1.1 2010-03-10 Jean-Pierre Redonnet * didiwiki renamed didiwiki2 Few new markups (non-standards but compacts) Added image and border resize, example: {{ width=200 height=300 border= 2 }} * configure.ac updated version to 1.0 2010-03-07 Jean-Pierre Redonnet * didiwiki renamed didiwiki2 Few new markups (non-standards but compacts) Added text color, highlight color, example: text color:{B} highlight:+text+ and color:(Y) * configure.ac updated version to 0.9 2009-09-30 Gilbert Ashley * src/wiki.c * src/wikitext.h Fixed edit/delete functionality so that the links point to the current page and not always the main WikiHome. This meant separating EDITHEADER and PAGEHEADER into two independent headers. * Added a man-page -taken from debian and slightly altered * Added styles.css page -also taken from debian * Added logo and toolbar png images taken from didiwiki website * Added example didiwiki.conf * Added didiwiki.1, styles.css, didiwiki-16.png, didiwiki.png, didiwiki.conf and didiwiki.html to top-level Makefile.am * Added notes about changes applied from debian patches to the previous ChangeLog entry. * Made small changes to the README file. * Added names of all contributors to AUTHORS * Added comments to the NEWS file. * Edited the didiwiki.html file to remove out-dated information. * configure.ac updated version to 0.8 * ran 'autoreconf -i' to generate new configuration files * Repackaged as didiwki-0.8.tar.bz2 2009-09-29 Gilbert Ashley * Based on didiwiki-0.6-svn sources: * Applied fixup patches from Peter Korsgaard : autogen-fixup, cleanup-svn, fix-rss-changes * Applied fixup and feature patch from debian didiwiki-0.5-5 - add command-line options for debugging, for setting 'wikihome' and for setting the port to use. - Spelling fixes. * Applied feature patches from Peter Korsgaard : edit-preview-cancel, delete-page * Applied feature patch from Kanru Chen : page-index support * Applied fixes debian patches from didiwiki-0.5-8 - Fix unicode chars on page names (Alexey Khudyakov ) - Remove the double newlines in preformatted text (Neil Stockbridge ) - Spelling fixes - Add access log using syslog (Carlo Mandelli ) - Implementation of the -l|--listen option that lets you bind to a address other than the default "0.0.0.0" (Carlo Mandelli ) - Usage() function implementation (Ignace Mouzannar ) - Implementation of a SIGINT handler in order to stop didiwiki cleanly (Ignace Mouzannar ) - Some minor fixes were written or applied by these debian didiwiki package maintainers: Carlo Mandelli Ignace Mouzannar Mauro Lizaur Peter Eisentraut Hanna Wallach * re-factored and re-diffed the above with necessary changes * removed website and svn files from sources * configure.ac: updated version to 0.7 2004-12-12 mallum,,, * website/index.htm: Fix SVN info 2004-12-12 mallum * website/index.htm: Add Openedhand Link 2004-11-14 mallum * src/http.c: (http_server): * src/wiki.c: (wiki_show_changes_page_rss), (wiki_handle_http_request): Improve RSS feed ( add full links tidy up ) 2004-11-14 mallum,,, * src/http.c: (http_response_send): * src/wiki.c: (check_for_link), (file_write), (wiki_show_search_results_page), (wiki_show_template), (wiki_show_header): * src/wikitext.h: Dont send '\0' in http response. Dont write '\0' to disk. Make all links relative, not absolute ( for reverse proxys ) Add initial RSS changes page ( thanks to ) 2004-09-30 0.5 released. 2004-09-30 mallum,,, * configure.ac: Bump up version, * src/wiki.c: (wiki_print_data_as_html), (wiki_get_pages), (wiki_handle_http_request): Fix italic brokeness. Add check for extra /'s in req path. * website/index.htm Update for 0.5 release. 2004-09-28 mallum,,, * README: Added notes on HTTP API. Made forking/memory thing a bit clearer. * TODO: Updated. * configure.ac: * src/Makefile.am: Add missing -Wall * src/didi.h: * src/http.c: (http_server): * src/wiki.c: (check_for_link), (wiki_print_data_as_html), (wiki_show_create_page), (changes_compar), (wiki_show_changes_page), (wiki_show_search_results_page), (wiki_show_template), (wiki_show_header), (wiki_show_footer), (wiki_handle_rest_call), (wiki_handle_http_request), (wiki_init): * src/wiki.h: Added simple http api. Rewrote searchs / changes stuff so more generic Applied patches from Tiago Cogumbreiro for more printf safety etc. Fixed -Wall warnings. * website/index.htm: Updated with hopeful amamzon wish list link. 2004-09-13 0.4 released. 2004-09-13 mallum * README: * configure.ac: Bump up versions * website/index.htm: * website/styles.css: bring in to 21st century. 2004-09-10 mallum,,, * configure.ac: Add message about upgrades and wikihelp * src/wiki.c: (check_for_link), (wiki_show_header), (wiki_handle_http_request): Add title attr for external www links Add favicon.ico * src/wikitext.h: Update help for ordered lists. Add favicon data. 2004-09-10 mallum, * Makefile.am: * TODO: Add TODO. 2004-09-09 mallum, * src/wiki.c: (check_for_link), (wiki_print_data_as_html): Dont let %'s in links end up as printf formatters. fixes seg. * src/wikitext.h: Add little javascript to edit page to autofocus textentry. Possibly evil. 2004-09-08 mallum,,, * src/wiki.c: (check_for_link): Only let alphanums be valid in camel case links ( via Eric Newman ) * src/wikitext.h: Fix missing ' in anchor tag 2004-09-02 mallum,,, * src/wiki.c: (wiki_handle_http_request): Remove any http encoding of requested page name, thanks again to Kanru Chen. 2004-09-02 mallum,,, * src/http.c: (http_response_send_headers): Send correct UTF8 type, thanks Kanru Chen. * src/wiki.c: (check_for_link), (wiki_print_data_as_html): Add support for file:// urls. Add Support for ordered lists. 2004-08-17 0.3 release. 2004-08-17 mallum * README: * configure.ac: Bump up version to 0.3 * src/wikitext.h: More CSS tweakery * website/index.htm: Update for 0.3 release 2004-08-10 mallum,,, * src/wiki.c: (wiki_show_header): * src/wikitext.h: Add titles and shortcut keys to hrefs 2004-08-08 mallum,,, * src/http.c: (http_response_new), (http_response_send_headers): * src/http.h: All content type in response to be set. * src/wiki.c: (wiki_show_changes_page), (wiki_show_search_results_page), (wiki_show_header), (wiki_handle_http_request): * src/wikitext.h: Fix styles.css to have corect content type. More web standard related fixes. Now xhtml transitional. 2004-08-06 mallum,,, * src/wiki.c: (wiki_print_data_as_html), (wiki_show_header): * src/wikitext.h: CSS + HTML cleanups/improvements 2004-08-02 mallum,,, * src/wiki.c: (wiki_print_data_as_html): Attempt to detect path names and not make them italic 2004-08-02 mallum,,, * src/wiki.c: (file_write), (wiki_print_data_as_html): More improvements to bold/italic/underline etc handling 2004-07-30 mallum,,, * README: update * src/wiki.c: (wiki_print_data_as_html), (wiki_init): honor DIDIWIKIHOME env var. Improve */-_ handling. * src/wikitext.h: Escape %%'s * website/index.htm: Update for 0.2 release 2004-07-30 0.2 Release 2004-07-29 mallum,,, * AUTHORS: Populated * src/wiki.c: (wiki_print_data_as_html): * src/wikitext.h: Basic Table support. Help updates. pre fixes 2004-07-29 mallum,,, * configure.ac: Bump up version * src/didi.c: (main): * src/didi.h: * src/http.c: (malformed_request): * src/util.c: (util_ascii_to_hex), (util_dehttpize), (util_htmlize): * src/util.h: * src/wiki.c: (check_for_link), (file_read), (wiki_print_data_as_html), (wiki_init): Quick source cleanup. Make sure lingering 's get closed 2004-07-28 mallum,,, * src/http.c: (http_server): reuse socket address * src/wiki.c: (wiki_print_data_as_html): Dont stick

    's in

    's
    
    2004-07-20  0.1 Release. 
    
    2004-07-20  mallum,,,  
    
    	* README:
    	* src/wikitext.h:
    	* website/index.htm:
    	More updates to wikitext.h , stylesheets etc.  
    	Added website stuff to svn. 
    	A bit more info in the README.
    
    2004-07-20  mallum,,,  
    
    	* src/didi.h:
    	* src/http.c:
    	* src/util.c:
    	* src/wiki.c: (wiki_print_data_as_html), (changes_compar),
    	(wiki_show_changes_page), (wiki_show_search_results_page),
    	(wiki_show_header):
    	* src/wikitext.h:
    	Add license to source files. 
    	More predefined Wiki Text. 
    
    2004-07-19  mallum  
    
    	* src/http.c: (http_server):
    	* src/wiki.c: (wiki_print_data_as_html), (wiki_show_changes_page),
    	(wiki_show_search_results_page), (wiki_show_header),
    	(wiki_show_footer), (wiki_handle_http_request), (wiki_init):
    	* src/wikitext.h:
    	Added simple search functionality. 
    	Messed with some header defines
    	Imporved webserver startup
    
    ./ciwiki-3.0.4/config.h000664 001750 001750 00000012751 14274674023 017153 0ustar00jpredonnetjpredonnet000000 000000 /* config.h.  Generated from config.h.in by configure.  */
    /* config.h.in.  Generated from configure.ac by autoheader.  */
    
    /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
       systems. This function is required for `alloca.c' support on those systems.
       */
    /* #undef CRAY_STACKSEG_END */
    
    /* Define to 1 if using `alloca.c'. */
    /* #undef C_ALLOCA */
    
    /* Define to 1 if you have `alloca', as a function or macro. */
    #define HAVE_ALLOCA 1
    
    /* Define to 1 if you have  and it should be used (not on Ultrix).
       */
    #define HAVE_ALLOCA_H 1
    
    /* Define to 1 if you have the  header file. */
    #define HAVE_ARPA_INET_H 1
    
    /* Define to 1 if you have the `asprintf' function. */
    #define HAVE_ASPRINTF 1
    
    /* Define to 1 if you have the  header file, and it defines `DIR'.
       */
    #define HAVE_DIRENT_H 1
    
    /* Define to 1 if you have the `fork' function. */
    #define HAVE_FORK 1
    
    /* Define to 1 if you have the `inet_ntoa' function. */
    #define HAVE_INET_NTOA 1
    
    /* Define to 1 if you have the  header file. */
    #define HAVE_INTTYPES_H 1
    
    /* Define to 1 if you have the  header file. */
    #define HAVE_MEMORY_H 1
    
    /* Define to 1 if you have the `memset' function. */
    #define HAVE_MEMSET 1
    
    /* Define to 1 if you have the `mkdir' function. */
    #define HAVE_MKDIR 1
    
    /* Define to 1 if you have the  header file, and it defines `DIR'. */
    /* #undef HAVE_NDIR_H */
    
    /* Define to 1 if you have the  header file. */
    #define HAVE_NETINET_IN_H 1
    
    /* Define to 1 if you have the `putenv' function. */
    #define HAVE_PUTENV 1
    
    /* Define to 1 if you have the `select' function. */
    #define HAVE_SELECT 1
    
    /* Define to 1 if you have the `socket' function. */
    #define HAVE_SOCKET 1
    
    /* Define to 1 if `stat' has the bug that it succeeds when given the
       zero-length file name argument. */
    /* #undef HAVE_STAT_EMPTY_STRING_BUG */
    
    /* Define to 1 if you have the  header file. */
    #define HAVE_STDINT_H 1
    
    /* Define to 1 if you have the  header file. */
    #define HAVE_STDLIB_H 1
    
    /* Define to 1 if you have the `strdup' function. */
    #define HAVE_STRDUP 1
    
    /* Define to 1 if you have the `strftime' function. */
    #define HAVE_STRFTIME 1
    
    /* Define to 1 if you have the  header file. */
    #define HAVE_STRINGS_H 1
    
    /* Define to 1 if you have the  header file. */
    #define HAVE_STRING_H 1
    
    /* Define to 1 if you have the `strncasecmp' function. */
    #define HAVE_STRNCASECMP 1
    
    /* Define to 1 if you have the  header file, and it defines `DIR'.
       */
    /* #undef HAVE_SYS_DIR_H */
    
    /* Define to 1 if you have the  header file, and it defines `DIR'.
       */
    /* #undef HAVE_SYS_NDIR_H */
    
    /* Define to 1 if you have the  header file. */
    #define HAVE_SYS_SELECT_H 1
    
    /* Define to 1 if you have the  header file. */
    #define HAVE_SYS_SOCKET_H 1
    
    /* Define to 1 if you have the  header file. */
    #define HAVE_SYS_STAT_H 1
    
    /* Define to 1 if you have the  header file. */
    #define HAVE_SYS_TIME_H 1
    
    /* Define to 1 if you have the  header file. */
    #define HAVE_SYS_TYPES_H 1
    
    /* Define to 1 if you have  that is POSIX.1 compatible. */
    #define HAVE_SYS_WAIT_H 1
    
    /* Define to 1 if you have the  header file. */
    #define HAVE_UNISTD_H 1
    
    /* Define to 1 if you have the `vfork' function. */
    #define HAVE_VFORK 1
    
    /* Define to 1 if you have the  header file. */
    /* #undef HAVE_VFORK_H */
    
    /* Define to 1 if `fork' works. */
    #define HAVE_WORKING_FORK 1
    
    /* Define to 1 if `vfork' works. */
    #define HAVE_WORKING_VFORK 1
    
    /* Define to 1 if `lstat' dereferences a symlink specified with a trailing
       slash. */
    #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
    
    /* Name of package */
    #define PACKAGE "ciwiki"
    
    /* Define to the address where bug reports for this package should be sent. */
    #define PACKAGE_BUGREPORT "inphilly@gmail.com"
    
    /* Define to the full name of this package. */
    #define PACKAGE_NAME "ciwiki"
    
    /* Define to the full name and version of this package. */
    #define PACKAGE_STRING "ciwiki 3.0.4"
    
    /* Define to the one symbol short name of this package. */
    #define PACKAGE_TARNAME "ciwiki"
    
    /* Define to the home page for this package. */
    #define PACKAGE_URL ""
    
    /* Define to the version of this package. */
    #define PACKAGE_VERSION "3.0.4"
    
    /* Define to the type of arg 1 for `select'. */
    #define SELECT_TYPE_ARG1 int
    
    /* Define to the type of args 2, 3 and 4 for `select'. */
    #define SELECT_TYPE_ARG234 (fd_set *)
    
    /* Define to the type of arg 5 for `select'. */
    #define SELECT_TYPE_ARG5 (struct timeval *)
    
    /* If using the C implementation of alloca, define if you know the
       direction of stack growth for your system; otherwise it will be
       automatically deduced at runtime.
    	STACK_DIRECTION > 0 => grows toward higher addresses
    	STACK_DIRECTION < 0 => grows toward lower addresses
    	STACK_DIRECTION = 0 => direction of growth unknown */
    /* #undef STACK_DIRECTION */
    
    /* Define to 1 if you have the ANSI C header files. */
    #define STDC_HEADERS 1
    
    /* Define to 1 if you can safely include both  and . */
    #define TIME_WITH_SYS_TIME 1
    
    /* Define to 1 if your  declares `struct tm'. */
    /* #undef TM_IN_SYS_TIME */
    
    /* Version number of package */
    #define VERSION "3.0.4"
    
    /* Define to empty if `const' does not conform to ANSI C. */
    /* #undef const */
    
    /* Define to `int' if  does not define. */
    /* #undef pid_t */
    
    /* Define to `unsigned int' if  does not define. */
    /* #undef size_t */
    
    /* Define as `fork' if `vfork' does not work. */
    /* #undef vfork */
    ./ciwiki-3.0.4/files/000775 001750 001750 00000000000 14274543461 016632 5ustar00jpredonnetjpredonnet000000 000000 ./ciwiki-3.0.4/files/index.zip000777 001750 001750 00000002002 11427313464 020457 0ustar00jpredonnetjpredonnet000000 000000 PK9<]qX%
    index.htmlUT	n!L0f]LuxmTMo6ﯘ9J:(g"b{lE\qV""ZYJVN}7o~x:itVԅREb!_o?67PyX$OIr?mr'Z-U7Iu]ܽ-cV!~,8^0|S5}b]
    bd85zטn>3(}ފM
    /@MoeYy8?[g:H=DQ~#y\BV݃D$?N+l1s(i}v="m'!u3̿ɜ)pi2%*
    .NgsL^zY'yL!d-d,]3G"c!'.5Z6qF%8[NvD7d#f,&bL<ڙǴ9|1ɕ8=_1l+V\=rZtk=L} qnfTWLGV:ڂBmŚ@j ԅj^.VV%+O*O+ΡSNʴڦ1ևDk	J:OoYS
    hx
    -RxtX>7!F)8?DCo+_5v	;^Jk18LaZp:""$Js9$*MS\	s]ސ9Dl{xƲhәpjTU۞H‡rX~ kX}Ei;>K(tԀpǽ鮔jШ4C7)R[OŞ5mSpLl$?PK9<]qX%
    index.htmlUTn!LuxPKP./ciwiki-3.0.4/NEWS000777 001750 001750 00000001377 12462236770 016243 0ustar00jpredonnetjpredonnet000000 000000 didiwiki is no longer developed or maintained by the original
    author: Matthew Allum 
    
    didiwiki-0.6 and later versions are unofficial releases from:
    Gilbert Ashley 
    
    Please do not bother the original author with any bug reports,
    comments or complaints having to do with didiwiki-0.6 or later.
    Instead, address these to Gilbert Ashley 
    
    -----------------------------------------------------------------
    CiWiki (jean-pierre Redonnet )
    is a fork of DidiWiki-0.8 (Gilbert Ashley).
    New features will be added, the compatibility with DidiWiki will 
    be kept as longer as possible.
    
    Please read ChangeLog for the new features/update
    -----------------------------------------------------------------
    ./ciwiki-3.0.4/config.status000775 001750 001750 00000102372 14274674204 020252 0ustar00jpredonnetjpredonnet000000 000000 #! /bin/bash
    # Generated by configure.
    # Run this file to recreate the current configuration.
    # Compiler output produced by configure, useful for debugging
    # configure, is in config.log if it exists.
    
    debug=false
    ac_cs_recheck=false
    ac_cs_silent=false
    
    SHELL=${CONFIG_SHELL-/bin/bash}
    export SHELL
    ## -------------------- ##
    ## M4sh Initialization. ##
    ## -------------------- ##
    
    # Be more Bourne compatible
    DUALCASE=1; export DUALCASE # for MKS sh
    if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
      emulate sh
      NULLCMD=:
      # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
      # is contrary to our usage.  Disable this feature.
      alias -g '${1+"$@"}'='"$@"'
      setopt NO_GLOB_SUBST
    else
      case `(set -o) 2>/dev/null` in #(
      *posix*) :
        set -o posix ;; #(
      *) :
         ;;
    esac
    fi
    
    
    as_nl='
    '
    export as_nl
    # Printing a long string crashes Solaris 7 /usr/bin/printf.
    as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
    as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
    # Prefer a ksh shell builtin over an external printf program on Solaris,
    # but without wasting forks for bash or zsh.
    if test -z "$BASH_VERSION$ZSH_VERSION" \
        && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
      as_echo='print -r --'
      as_echo_n='print -rn --'
    elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
      as_echo='printf %s\n'
      as_echo_n='printf %s'
    else
      if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
        as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
        as_echo_n='/usr/ucb/echo -n'
      else
        as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
        as_echo_n_body='eval
          arg=$1;
          case $arg in #(
          *"$as_nl"*)
    	expr "X$arg" : "X\\(.*\\)$as_nl";
    	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
          esac;
          expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
        '
        export as_echo_n_body
        as_echo_n='sh -c $as_echo_n_body as_echo'
      fi
      export as_echo_body
      as_echo='sh -c $as_echo_body as_echo'
    fi
    
    # The user is always right.
    if test "${PATH_SEPARATOR+set}" != set; then
      PATH_SEPARATOR=:
      (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
        (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
          PATH_SEPARATOR=';'
      }
    fi
    
    
    # IFS
    # We need space, tab and new line, in precisely that order.  Quoting is
    # there to prevent editors from complaining about space-tab.
    # (If _AS_PATH_WALK were called with IFS unset, it would disable word
    # splitting by setting IFS to empty value.)
    IFS=" ""	$as_nl"
    
    # Find who we are.  Look in the path if we contain no directory separator.
    as_myself=
    case $0 in #((
      *[\\/]* ) as_myself=$0 ;;
      *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
        test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
      done
    IFS=$as_save_IFS
    
         ;;
    esac
    # We did not find ourselves, most probably we were run as `sh COMMAND'
    # in which case we are not to be found in the path.
    if test "x$as_myself" = x; then
      as_myself=$0
    fi
    if test ! -f "$as_myself"; then
      $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
      exit 1
    fi
    
    # Unset variables that we do not need and which cause bugs (e.g. in
    # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
    # suppresses any "Segmentation fault" message there.  '((' could
    # trigger a bug in pdksh 5.2.14.
    for as_var in BASH_ENV ENV MAIL MAILPATH
    do eval test x\${$as_var+set} = xset \
      && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    done
    PS1='$ '
    PS2='> '
    PS4='+ '
    
    # NLS nuisances.
    LC_ALL=C
    export LC_ALL
    LANGUAGE=C
    export LANGUAGE
    
    # CDPATH.
    (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    
    
    # as_fn_error STATUS ERROR [LINENO LOG_FD]
    # ----------------------------------------
    # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    # script with STATUS, using 1 if that was 0.
    as_fn_error ()
    {
      as_status=$1; test $as_status -eq 0 && as_status=1
      if test "$4"; then
        as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
        $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
      fi
      $as_echo "$as_me: error: $2" >&2
      as_fn_exit $as_status
    } # as_fn_error
    
    
    # as_fn_set_status STATUS
    # -----------------------
    # Set $? to STATUS, without forking.
    as_fn_set_status ()
    {
      return $1
    } # as_fn_set_status
    
    # as_fn_exit STATUS
    # -----------------
    # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    as_fn_exit ()
    {
      set +e
      as_fn_set_status $1
      exit $1
    } # as_fn_exit
    
    # as_fn_unset VAR
    # ---------------
    # Portably unset VAR.
    as_fn_unset ()
    {
      { eval $1=; unset $1;}
    }
    as_unset=as_fn_unset
    # as_fn_append VAR VALUE
    # ----------------------
    # Append the text in VALUE to the end of the definition contained in VAR. Take
    # advantage of any shell optimizations that allow amortized linear growth over
    # repeated appends, instead of the typical quadratic growth present in naive
    # implementations.
    if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
      eval 'as_fn_append ()
      {
        eval $1+=\$2
      }'
    else
      as_fn_append ()
      {
        eval $1=\$$1\$2
      }
    fi # as_fn_append
    
    # as_fn_arith ARG...
    # ------------------
    # Perform arithmetic evaluation on the ARGs, and store the result in the
    # global $as_val. Take advantage of shells that can avoid forks. The arguments
    # must be portable across $(()) and expr.
    if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
      eval 'as_fn_arith ()
      {
        as_val=$(( $* ))
      }'
    else
      as_fn_arith ()
      {
        as_val=`expr "$@" || test $? -eq 1`
      }
    fi # as_fn_arith
    
    
    if expr a : '\(a\)' >/dev/null 2>&1 &&
       test "X`expr 00001 : '.*\(...\)'`" = X001; then
      as_expr=expr
    else
      as_expr=false
    fi
    
    if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
      as_basename=basename
    else
      as_basename=false
    fi
    
    if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
      as_dirname=dirname
    else
      as_dirname=false
    fi
    
    as_me=`$as_basename -- "$0" ||
    $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    	 X"$0" : 'X\(//\)$' \| \
    	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    $as_echo X/"$0" |
        sed '/^.*\/\([^/][^/]*\)\/*$/{
    	    s//\1/
    	    q
    	  }
    	  /^X\/\(\/\/\)$/{
    	    s//\1/
    	    q
    	  }
    	  /^X\/\(\/\).*/{
    	    s//\1/
    	    q
    	  }
    	  s/.*/./; q'`
    
    # Avoid depending upon Character Ranges.
    as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    as_cr_digits='0123456789'
    as_cr_alnum=$as_cr_Letters$as_cr_digits
    
    ECHO_C= ECHO_N= ECHO_T=
    case `echo -n x` in #(((((
    -n*)
      case `echo 'xy\c'` in
      *c*) ECHO_T='	';;	# ECHO_T is single tab character.
      xy)  ECHO_C='\c';;
      *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
           ECHO_T='	';;
      esac;;
    *)
      ECHO_N='-n';;
    esac
    
    rm -f conf$$ conf$$.exe conf$$.file
    if test -d conf$$.dir; then
      rm -f conf$$.dir/conf$$.file
    else
      rm -f conf$$.dir
      mkdir conf$$.dir 2>/dev/null
    fi
    if (echo >conf$$.file) 2>/dev/null; then
      if ln -s conf$$.file conf$$ 2>/dev/null; then
        as_ln_s='ln -s'
        # ... but there are two gotchas:
        # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
        # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
        # In both cases, we have to default to `cp -pR'.
        ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
          as_ln_s='cp -pR'
      elif ln conf$$.file conf$$ 2>/dev/null; then
        as_ln_s=ln
      else
        as_ln_s='cp -pR'
      fi
    else
      as_ln_s='cp -pR'
    fi
    rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    rmdir conf$$.dir 2>/dev/null
    
    
    # as_fn_mkdir_p
    # -------------
    # Create "$as_dir" as a directory, including parents if necessary.
    as_fn_mkdir_p ()
    {
    
      case $as_dir in #(
      -*) as_dir=./$as_dir;;
      esac
      test -d "$as_dir" || eval $as_mkdir_p || {
        as_dirs=
        while :; do
          case $as_dir in #(
          *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
          *) as_qdir=$as_dir;;
          esac
          as_dirs="'$as_qdir' $as_dirs"
          as_dir=`$as_dirname -- "$as_dir" ||
    $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    	 X"$as_dir" : 'X\(//\)[^/]' \| \
    	 X"$as_dir" : 'X\(//\)$' \| \
    	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    $as_echo X"$as_dir" |
        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    	    s//\1/
    	    q
    	  }
    	  /^X\(\/\/\)[^/].*/{
    	    s//\1/
    	    q
    	  }
    	  /^X\(\/\/\)$/{
    	    s//\1/
    	    q
    	  }
    	  /^X\(\/\).*/{
    	    s//\1/
    	    q
    	  }
    	  s/.*/./; q'`
          test -d "$as_dir" && break
        done
        test -z "$as_dirs" || eval "mkdir $as_dirs"
      } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    
    
    } # as_fn_mkdir_p
    if mkdir -p . 2>/dev/null; then
      as_mkdir_p='mkdir -p "$as_dir"'
    else
      test -d ./-p && rmdir ./-p
      as_mkdir_p=false
    fi
    
    
    # as_fn_executable_p FILE
    # -----------------------
    # Test if FILE is an executable regular file.
    as_fn_executable_p ()
    {
      test -f "$1" && test -x "$1"
    } # as_fn_executable_p
    as_test_x='test -x'
    as_executable_p=as_fn_executable_p
    
    # Sed expression to map a string onto a valid CPP name.
    as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    
    # Sed expression to map a string onto a valid variable name.
    as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    
    
    exec 6>&1
    ## ----------------------------------- ##
    ## Main body of $CONFIG_STATUS script. ##
    ## ----------------------------------- ##
    # Save the log message, to keep $0 and so on meaningful, and to
    # report actual input values of CONFIG_FILES etc. instead of their
    # values after options handling.
    ac_log="
    This file was extended by ciwiki $as_me 3.0.4, which was
    generated by GNU Autoconf 2.69.  Invocation command line was
    
      CONFIG_FILES    = $CONFIG_FILES
      CONFIG_HEADERS  = $CONFIG_HEADERS
      CONFIG_LINKS    = $CONFIG_LINKS
      CONFIG_COMMANDS = $CONFIG_COMMANDS
      $ $0 $@
    
    on `(hostname || uname -n) 2>/dev/null | sed 1q`
    "
    
    # Files that config.status was made for.
    config_files=" Makefile src/Makefile scripts/Makefile docs/Makefile"
    config_headers=" config.h"
    config_commands=" depfiles"
    
    ac_cs_usage="\
    \`$as_me' instantiates files and other configuration actions
    from templates according to the current configuration.  Unless the files
    and actions are specified as TAGs, all are instantiated by default.
    
    Usage: $0 [OPTION]... [TAG]...
    
      -h, --help       print this help, then exit
      -V, --version    print version number and configuration settings, then exit
          --config     print configuration, then exit
      -q, --quiet, --silent
                       do not print progress messages
      -d, --debug      don't remove temporary files
          --recheck    update $as_me by reconfiguring in the same conditions
          --file=FILE[:TEMPLATE]
                       instantiate the configuration file FILE
          --header=FILE[:TEMPLATE]
                       instantiate the configuration header FILE
    
    Configuration files:
    $config_files
    
    Configuration headers:
    $config_headers
    
    Configuration commands:
    $config_commands
    
    Report bugs to ."
    
    ac_cs_config=""
    ac_cs_version="\
    ciwiki config.status 3.0.4
    configured by ./configure, generated by GNU Autoconf 2.69,
      with options \"$ac_cs_config\"
    
    Copyright (C) 2012 Free Software Foundation, Inc.
    This config.status script is free software; the Free Software Foundation
    gives unlimited permission to copy, distribute and modify it."
    
    ac_pwd='/home/jpredonnet/ciwiki/ciwiki-3.0.4'
    srcdir='.'
    INSTALL='/usr/bin/install -c'
    MKDIR_P='/bin/mkdir -p'
    AWK='mawk'
    test -n "$AWK" || AWK=awk
    # The default lists apply if the user does not specify any file.
    ac_need_defaults=:
    while test $# != 0
    do
      case $1 in
      --*=?*)
        ac_option=`expr "X$1" : 'X\([^=]*\)='`
        ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
        ac_shift=:
        ;;
      --*=)
        ac_option=`expr "X$1" : 'X\([^=]*\)='`
        ac_optarg=
        ac_shift=:
        ;;
      *)
        ac_option=$1
        ac_optarg=$2
        ac_shift=shift
        ;;
      esac
    
      case $ac_option in
      # Handling of the options.
      -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
        ac_cs_recheck=: ;;
      --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
        $as_echo "$ac_cs_version"; exit ;;
      --config | --confi | --conf | --con | --co | --c )
        $as_echo "$ac_cs_config"; exit ;;
      --debug | --debu | --deb | --de | --d | -d )
        debug=: ;;
      --file | --fil | --fi | --f )
        $ac_shift
        case $ac_optarg in
        *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
        '') as_fn_error $? "missing file argument" ;;
        esac
        as_fn_append CONFIG_FILES " '$ac_optarg'"
        ac_need_defaults=false;;
      --header | --heade | --head | --hea )
        $ac_shift
        case $ac_optarg in
        *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
        esac
        as_fn_append CONFIG_HEADERS " '$ac_optarg'"
        ac_need_defaults=false;;
      --he | --h)
        # Conflict between --help and --header
        as_fn_error $? "ambiguous option: \`$1'
    Try \`$0 --help' for more information.";;
      --help | --hel | -h )
        $as_echo "$ac_cs_usage"; exit ;;
      -q | -quiet | --quiet | --quie | --qui | --qu | --q \
      | -silent | --silent | --silen | --sile | --sil | --si | --s)
        ac_cs_silent=: ;;
    
      # This is an error.
      -*) as_fn_error $? "unrecognized option: \`$1'
    Try \`$0 --help' for more information." ;;
    
      *) as_fn_append ac_config_targets " $1"
         ac_need_defaults=false ;;
    
      esac
      shift
    done
    
    ac_configure_extra_args=
    
    if $ac_cs_silent; then
      exec 6>/dev/null
      ac_configure_extra_args="$ac_configure_extra_args --silent"
    fi
    
    if $ac_cs_recheck; then
      set X /bin/bash './configure'  $ac_configure_extra_args --no-create --no-recursion
      shift
      $as_echo "running CONFIG_SHELL=/bin/bash $*" >&6
      CONFIG_SHELL='/bin/bash'
      export CONFIG_SHELL
      exec "$@"
    fi
    
    exec 5>>config.log
    {
      echo
      sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
    ## Running $as_me. ##
    _ASBOX
      $as_echo "$ac_log"
    } >&5
    
    #
    # INIT-COMMANDS
    #
    AMDEP_TRUE="" MAKE="make"
    
    
    # Handling of arguments.
    for ac_config_target in $ac_config_targets
    do
      case $ac_config_target in
        "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
        "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
        "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
        "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
        "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
        "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
    
      *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
      esac
    done
    
    
    # If the user did not use the arguments to specify the items to instantiate,
    # then the envvar interface is used.  Set only those that are not.
    # We use the long form for the default assignment because of an extremely
    # bizarre bug on SunOS 4.1.3.
    if $ac_need_defaults; then
      test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
      test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
      test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
    fi
    
    # Have a temporary directory for convenience.  Make it in the build tree
    # simply because there is no reason against having it here, and in addition,
    # creating and moving files from /tmp can sometimes cause problems.
    # Hook for its removal unless debugging.
    # Note that there is a small window in which the directory will not be cleaned:
    # after its creation but before its name has been assigned to `$tmp'.
    $debug ||
    {
      tmp= ac_tmp=
      trap 'exit_status=$?
      : "${ac_tmp:=$tmp}"
      { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
    ' 0
      trap 'as_fn_exit 1' 1 2 13 15
    }
    # Create a (secure) tmp directory for tmp files.
    
    {
      tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
      test -d "$tmp"
    }  ||
    {
      tmp=./conf$$-$RANDOM
      (umask 077 && mkdir "$tmp")
    } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
    ac_tmp=$tmp
    
    # Set up the scripts for CONFIG_FILES section.
    # No need to generate them if there are no CONFIG_FILES.
    # This happens for instance with `./config.status config.h'.
    if test -n "$CONFIG_FILES"; then
    
    
    ac_cr=`echo X | tr X '\015'`
    # On cygwin, bash can eat \r inside `` if the user requested igncr.
    # But we know of no other shell where ac_cr would be empty at this
    # point, so we can use a bashism as a fallback.
    if test "x$ac_cr" = x; then
      eval ac_cr=\$\'\\r\'
    fi
    ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
    if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
      ac_cs_awk_cr='\\r'
    else
      ac_cs_awk_cr=$ac_cr
    fi
    
    echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
    cat >>"$ac_tmp/subs1.awk" <<\_ACAWK &&
    S["am__EXEEXT_FALSE"]=""
    S["am__EXEEXT_TRUE"]="#"
    S["LTLIBOBJS"]=""
    S["GCC_FLAGS"]="-g -Wall -fno-strict-aliasing"
    S["LIBOBJS"]=""
    S["ALLOCA"]=""
    S["EGREP"]="/bin/grep -E"
    S["GREP"]="/bin/grep"
    S["CPP"]="gcc -E"
    S["am__fastdepCC_FALSE"]="#"
    S["am__fastdepCC_TRUE"]=""
    S["CCDEPMODE"]="depmode=gcc3"
    S["am__nodep"]="_no"
    S["AMDEPBACKSLASH"]="\\"
    S["AMDEP_FALSE"]="#"
    S["AMDEP_TRUE"]=""
    S["am__include"]="include"
    S["DEPDIR"]=".deps"
    S["OBJEXT"]="o"
    S["EXEEXT"]=""
    S["ac_ct_CC"]="gcc"
    S["CPPFLAGS"]=""
    S["LDFLAGS"]=""
    S["CFLAGS"]="-g -O2"
    S["CC"]="gcc"
    S["AM_BACKSLASH"]="\\"
    S["AM_DEFAULT_VERBOSITY"]="1"
    S["AM_DEFAULT_V"]="$(AM_DEFAULT_VERBOSITY)"
    S["AM_V"]="$(V)"
    S["am__untar"]="$${TAR-tar} xf -"
    S["am__tar"]="$${TAR-tar} chof - \"$$tardir\""
    S["AMTAR"]="$${TAR-tar}"
    S["am__leading_dot"]="."
    S["SET_MAKE"]=""
    S["AWK"]="mawk"
    S["mkdir_p"]="$(MKDIR_P)"
    S["MKDIR_P"]="/bin/mkdir -p"
    S["INSTALL_STRIP_PROGRAM"]="$(install_sh) -c -s"
    S["STRIP"]=""
    S["install_sh"]="${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/install-sh"
    S["MAKEINFO"]="${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing makeinfo"
    S["AUTOHEADER"]="${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing autoheader"
    S["AUTOMAKE"]="${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing automake-1.16"
    S["AUTOCONF"]="${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing autoconf"
    S["ACLOCAL"]="${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing aclocal-1.16"
    S["VERSION"]="3.0.4"
    S["PACKAGE"]="ciwiki"
    S["CYGPATH_W"]="echo"
    S["am__isrc"]=""
    S["INSTALL_DATA"]="${INSTALL} -m 644"
    S["INSTALL_SCRIPT"]="${INSTALL}"
    S["INSTALL_PROGRAM"]="${INSTALL}"
    S["target_alias"]=""
    S["host_alias"]=""
    S["build_alias"]=""
    S["LIBS"]=""
    S["ECHO_T"]=""
    S["ECHO_N"]="-n"
    S["ECHO_C"]=""
    S["DEFS"]="-DHAVE_CONFIG_H"
    S["mandir"]="${datarootdir}/man"
    S["localedir"]="${datarootdir}/locale"
    S["libdir"]="${exec_prefix}/lib"
    S["psdir"]="${docdir}"
    S["pdfdir"]="${docdir}"
    S["dvidir"]="${docdir}"
    S["htmldir"]="${docdir}"
    S["infodir"]="${datarootdir}/info"
    S["docdir"]="${datarootdir}/doc/${PACKAGE_TARNAME}"
    S["oldincludedir"]="/usr/include"
    S["includedir"]="${prefix}/include"
    S["runstatedir"]="${localstatedir}/run"
    S["localstatedir"]="${prefix}/var"
    S["sharedstatedir"]="${prefix}/com"
    S["sysconfdir"]="${prefix}/etc"
    S["datadir"]="${datarootdir}"
    S["datarootdir"]="${prefix}/share"
    S["libexecdir"]="${exec_prefix}/libexec"
    S["sbindir"]="${exec_prefix}/sbin"
    S["bindir"]="${exec_prefix}/bin"
    S["program_transform_name"]="s,x,x,"
    S["prefix"]="/usr/local"
    S["exec_prefix"]="${prefix}"
    S["PACKAGE_URL"]=""
    S["PACKAGE_BUGREPORT"]="inphilly@gmail.com"
    S["PACKAGE_STRING"]="ciwiki 3.0.4"
    S["PACKAGE_VERSION"]="3.0.4"
    S["PACKAGE_TARNAME"]="ciwiki"
    S["PACKAGE_NAME"]="ciwiki"
    S["PATH_SEPARATOR"]=":"
    S["SHELL"]="/bin/bash"
    S["am__quote"]=""
    _ACAWK
    cat >>"$ac_tmp/subs1.awk" <<_ACAWK &&
      for (key in S) S_is_set[key] = 1
      FS = ""
    
    }
    {
      line = $ 0
      nfields = split(line, field, "@")
      substed = 0
      len = length(field[1])
      for (i = 2; i < nfields; i++) {
        key = field[i]
        keylen = length(key)
        if (S_is_set[key]) {
          value = S[key]
          line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
          len += length(value) + length(field[++i])
          substed = 1
        } else
          len += 1 + keylen
      }
    
      print line
    }
    
    _ACAWK
    if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
      sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
    else
      cat
    fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
      || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
    fi # test -n "$CONFIG_FILES"
    
    # Set up the scripts for CONFIG_HEADERS section.
    # No need to generate them if there are no CONFIG_HEADERS.
    # This happens for instance with `./config.status Makefile'.
    if test -n "$CONFIG_HEADERS"; then
    cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
    BEGIN {
    D["PACKAGE_NAME"]=" \"ciwiki\""
    D["PACKAGE_TARNAME"]=" \"ciwiki\""
    D["PACKAGE_VERSION"]=" \"3.0.4\""
    D["PACKAGE_STRING"]=" \"ciwiki 3.0.4\""
    D["PACKAGE_BUGREPORT"]=" \"inphilly@gmail.com\""
    D["PACKAGE_URL"]=" \"\""
    D["PACKAGE"]=" \"ciwiki\""
    D["VERSION"]=" \"3.0.4\""
    D["HAVE_DIRENT_H"]=" 1"
    D["STDC_HEADERS"]=" 1"
    D["HAVE_SYS_WAIT_H"]=" 1"
    D["HAVE_SYS_TYPES_H"]=" 1"
    D["HAVE_SYS_STAT_H"]=" 1"
    D["HAVE_STDLIB_H"]=" 1"
    D["HAVE_STRING_H"]=" 1"
    D["HAVE_MEMORY_H"]=" 1"
    D["HAVE_STRINGS_H"]=" 1"
    D["HAVE_INTTYPES_H"]=" 1"
    D["HAVE_STDINT_H"]=" 1"
    D["HAVE_UNISTD_H"]=" 1"
    D["HAVE_ARPA_INET_H"]=" 1"
    D["HAVE_NETINET_IN_H"]=" 1"
    D["HAVE_STDLIB_H"]=" 1"
    D["HAVE_STRING_H"]=" 1"
    D["HAVE_SYS_SOCKET_H"]=" 1"
    D["HAVE_SYS_TIME_H"]=" 1"
    D["HAVE_UNISTD_H"]=" 1"
    D["TIME_WITH_SYS_TIME"]=" 1"
    D["HAVE_ALLOCA_H"]=" 1"
    D["HAVE_ALLOCA"]=" 1"
    D["HAVE_FORK"]=" 1"
    D["HAVE_VFORK"]=" 1"
    D["HAVE_WORKING_VFORK"]=" 1"
    D["HAVE_WORKING_FORK"]=" 1"
    D["HAVE_SYS_SELECT_H"]=" 1"
    D["HAVE_SYS_SOCKET_H"]=" 1"
    D["SELECT_TYPE_ARG1"]=" int"
    D["SELECT_TYPE_ARG234"]=" (fd_set *)"
    D["SELECT_TYPE_ARG5"]=" (struct timeval *)"
    D["LSTAT_FOLLOWS_SLASHED_SYMLINK"]=" 1"
    D["HAVE_STRFTIME"]=" 1"
    D["HAVE_ASPRINTF"]=" 1"
    D["HAVE_INET_NTOA"]=" 1"
    D["HAVE_MEMSET"]=" 1"
    D["HAVE_MKDIR"]=" 1"
    D["HAVE_PUTENV"]=" 1"
    D["HAVE_SELECT"]=" 1"
    D["HAVE_SOCKET"]=" 1"
    D["HAVE_STRDUP"]=" 1"
    D["HAVE_STRNCASECMP"]=" 1"
      for (key in D) D_is_set[key] = 1
      FS = ""
    }
    /^[\t ]*#[\t ]*(define|undef)[\t ]+[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ][_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*([\t (]|$)/ {
      line = $ 0
      split(line, arg, " ")
      if (arg[1] == "#") {
        defundef = arg[2]
        mac1 = arg[3]
      } else {
        defundef = substr(arg[1], 2)
        mac1 = arg[2]
      }
      split(mac1, mac2, "(") #)
      macro = mac2[1]
      prefix = substr(line, 1, index(line, defundef) - 1)
      if (D_is_set[macro]) {
        # Preserve the white space surrounding the "#".
        print prefix "define", macro P[macro] D[macro]
        next
      } else {
        # Replace #undef with comments.  This is necessary, for example,
        # in the case of _POSIX_SOURCE, which is predefined and required
        # on some systems where configure will not decide to define it.
        if (defundef == "undef") {
          print "/*", prefix defundef, macro, "*/"
          next
        }
      }
    }
    { print }
    _ACAWK
      as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
    fi # test -n "$CONFIG_HEADERS"
    
    
    eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
    shift
    for ac_tag
    do
      case $ac_tag in
      :[FHLC]) ac_mode=$ac_tag; continue;;
      esac
      case $ac_mode$ac_tag in
      :[FHL]*:*);;
      :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
      :[FH]-) ac_tag=-:-;;
      :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
      esac
      ac_save_IFS=$IFS
      IFS=:
      set x $ac_tag
      IFS=$ac_save_IFS
      shift
      ac_file=$1
      shift
    
      case $ac_mode in
      :L) ac_source=$1;;
      :[FH])
        ac_file_inputs=
        for ac_f
        do
          case $ac_f in
          -) ac_f="$ac_tmp/stdin";;
          *) # Look for the file first in the build tree, then in the source tree
    	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
    	 # because $ac_f cannot contain `:'.
    	 test -f "$ac_f" ||
    	   case $ac_f in
    	   [\\/$]*) false;;
    	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
    	   esac ||
    	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
          esac
          case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
          as_fn_append ac_file_inputs " '$ac_f'"
        done
    
        # Let's still pretend it is `configure' which instantiates (i.e., don't
        # use $as_me), people would be surprised to read:
        #    /* config.h.  Generated by config.status.  */
        configure_input='Generated from '`
    	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
    	`' by configure.'
        if test x"$ac_file" != x-; then
          configure_input="$ac_file.  $configure_input"
          { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
    $as_echo "$as_me: creating $ac_file" >&6;}
        fi
        # Neutralize special characters interpreted by sed in replacement strings.
        case $configure_input in #(
        *\&* | *\|* | *\\* )
           ac_sed_conf_input=`$as_echo "$configure_input" |
           sed 's/[\\\\&|]/\\\\&/g'`;; #(
        *) ac_sed_conf_input=$configure_input;;
        esac
    
        case $ac_tag in
        *:-:* | *:-) cat >"$ac_tmp/stdin" \
          || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
        esac
        ;;
      esac
    
      ac_dir=`$as_dirname -- "$ac_file" ||
    $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    	 X"$ac_file" : 'X\(//\)[^/]' \| \
    	 X"$ac_file" : 'X\(//\)$' \| \
    	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
    $as_echo X"$ac_file" |
        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    	    s//\1/
    	    q
    	  }
    	  /^X\(\/\/\)[^/].*/{
    	    s//\1/
    	    q
    	  }
    	  /^X\(\/\/\)$/{
    	    s//\1/
    	    q
    	  }
    	  /^X\(\/\).*/{
    	    s//\1/
    	    q
    	  }
    	  s/.*/./; q'`
      as_dir="$ac_dir"; as_fn_mkdir_p
      ac_builddir=.
    
    case "$ac_dir" in
    .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
    *)
      ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
      # A ".." for each directory in $ac_dir_suffix.
      ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
      case $ac_top_builddir_sub in
      "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
      *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
      esac ;;
    esac
    ac_abs_top_builddir=$ac_pwd
    ac_abs_builddir=$ac_pwd$ac_dir_suffix
    # for backward compatibility:
    ac_top_builddir=$ac_top_build_prefix
    
    case $srcdir in
      .)  # We are building in place.
        ac_srcdir=.
        ac_top_srcdir=$ac_top_builddir_sub
        ac_abs_top_srcdir=$ac_pwd ;;
      [\\/]* | ?:[\\/]* )  # Absolute name.
        ac_srcdir=$srcdir$ac_dir_suffix;
        ac_top_srcdir=$srcdir
        ac_abs_top_srcdir=$srcdir ;;
      *) # Relative name.
        ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
        ac_top_srcdir=$ac_top_build_prefix$srcdir
        ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
    esac
    ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
    
    
      case $ac_mode in
      :F)
      #
      # CONFIG_FILE
      #
    
      case $INSTALL in
      [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
      *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
      esac
      ac_MKDIR_P=$MKDIR_P
      case $MKDIR_P in
      [\\/$]* | ?:[\\/]* ) ;;
      */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
      esac
    # If the template does not know about datarootdir, expand it.
    # FIXME: This hack should be removed a few years after 2.60.
    ac_datarootdir_hack=; ac_datarootdir_seen=
    ac_sed_dataroot='
    /datarootdir/ {
      p
      q
    }
    /@datadir@/p
    /@docdir@/p
    /@infodir@/p
    /@localedir@/p
    /@mandir@/p'
    case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
    *datarootdir*) ac_datarootdir_seen=yes;;
    *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
    $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
      ac_datarootdir_hack='
      s&@datadir@&${datarootdir}&g
      s&@docdir@&${datarootdir}/doc/${PACKAGE_TARNAME}&g
      s&@infodir@&${datarootdir}/info&g
      s&@localedir@&${datarootdir}/locale&g
      s&@mandir@&${datarootdir}/man&g
      s&\${datarootdir}&${prefix}/share&g' ;;
    esac
    ac_sed_extra="/^[	 ]*VPATH[	 ]*=[	 ]*/{
    h
    s///
    s/^/:/
    s/[	 ]*$/:/
    s/:\$(srcdir):/:/g
    s/:\${srcdir}:/:/g
    s/:@srcdir@:/:/g
    s/^:*//
    s/:*$//
    x
    s/\(=[	 ]*\).*/\1/
    G
    s/\n//
    s/^[^=]*=[	 ]*$//
    }
    
    :t
    /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
    s|@configure_input@|$ac_sed_conf_input|;t t
    s&@top_builddir@&$ac_top_builddir_sub&;t t
    s&@top_build_prefix@&$ac_top_build_prefix&;t t
    s&@srcdir@&$ac_srcdir&;t t
    s&@abs_srcdir@&$ac_abs_srcdir&;t t
    s&@top_srcdir@&$ac_top_srcdir&;t t
    s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
    s&@builddir@&$ac_builddir&;t t
    s&@abs_builddir@&$ac_abs_builddir&;t t
    s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
    s&@INSTALL@&$ac_INSTALL&;t t
    s&@MKDIR_P@&$ac_MKDIR_P&;t t
    $ac_datarootdir_hack
    "
    eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
      >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    
    test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
      { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
      { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
          "$ac_tmp/out"`; test -z "$ac_out"; } &&
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
    which seems to be undefined.  Please make sure it is defined" >&5
    $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
    which seems to be undefined.  Please make sure it is defined" >&2;}
    
      rm -f "$ac_tmp/stdin"
      case $ac_file in
      -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
      *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
      esac \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     ;;
      :H)
      #
      # CONFIG_HEADER
      #
      if test x"$ac_file" != x-; then
        {
          $as_echo "/* $configure_input  */" \
          && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
        } >"$ac_tmp/config.h" \
          || as_fn_error $? "could not create $ac_file" "$LINENO" 5
        if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
          { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
    $as_echo "$as_me: $ac_file is unchanged" >&6;}
        else
          rm -f "$ac_file"
          mv "$ac_tmp/config.h" "$ac_file" \
    	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
        fi
      else
        $as_echo "/* $configure_input  */" \
          && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
          || as_fn_error $? "could not create -" "$LINENO" 5
      fi
    # Compute "$ac_file"'s index in $config_headers.
    _am_arg="$ac_file"
    _am_stamp_count=1
    for _am_header in $config_headers :; do
      case $_am_header in
        $_am_arg | $_am_arg:* )
          break ;;
        * )
          _am_stamp_count=`expr $_am_stamp_count + 1` ;;
      esac
    done
    echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
    $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    	 X"$_am_arg" : 'X\(//\)[^/]' \| \
    	 X"$_am_arg" : 'X\(//\)$' \| \
    	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
    $as_echo X"$_am_arg" |
        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    	    s//\1/
    	    q
    	  }
    	  /^X\(\/\/\)[^/].*/{
    	    s//\1/
    	    q
    	  }
    	  /^X\(\/\/\)$/{
    	    s//\1/
    	    q
    	  }
    	  /^X\(\/\).*/{
    	    s//\1/
    	    q
    	  }
    	  s/.*/./; q'`/stamp-h$_am_stamp_count
     ;;
    
      :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
    $as_echo "$as_me: executing $ac_file commands" >&6;}
     ;;
      esac
    
    
      case $ac_file$ac_mode in
        "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
      # Older Autoconf quotes --file arguments for eval, but not when files
      # are listed without --file.  Let's play safe and only enable the eval
      # if we detect the quoting.
      # TODO: see whether this extra hack can be removed once we start
      # requiring Autoconf 2.70 or later.
      case $CONFIG_FILES in #(
      *\'*) :
        eval set x "$CONFIG_FILES" ;; #(
      *) :
        set x $CONFIG_FILES ;; #(
      *) :
         ;;
    esac
      shift
      # Used to flag and report bootstrapping failures.
      am_rc=0
      for am_mf
      do
        # Strip MF so we end up with the name of the file.
        am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
        # Check whether this is an Automake generated Makefile which includes
        # dependency-tracking related rules and includes.
        # Grep'ing the whole file directly is not great: AIX grep has a line
        # limit of 2048, but all sed's we know have understand at least 4000.
        sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
          || continue
        am_dirpart=`$as_dirname -- "$am_mf" ||
    $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    	 X"$am_mf" : 'X\(//\)[^/]' \| \
    	 X"$am_mf" : 'X\(//\)$' \| \
    	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
    $as_echo X"$am_mf" |
        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    	    s//\1/
    	    q
    	  }
    	  /^X\(\/\/\)[^/].*/{
    	    s//\1/
    	    q
    	  }
    	  /^X\(\/\/\)$/{
    	    s//\1/
    	    q
    	  }
    	  /^X\(\/\).*/{
    	    s//\1/
    	    q
    	  }
    	  s/.*/./; q'`
        am_filepart=`$as_basename -- "$am_mf" ||
    $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
    	 X"$am_mf" : 'X\(//\)$' \| \
    	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
    $as_echo X/"$am_mf" |
        sed '/^.*\/\([^/][^/]*\)\/*$/{
    	    s//\1/
    	    q
    	  }
    	  /^X\/\(\/\/\)$/{
    	    s//\1/
    	    q
    	  }
    	  /^X\/\(\/\).*/{
    	    s//\1/
    	    q
    	  }
    	  s/.*/./; q'`
        { echo "$as_me:$LINENO: cd "$am_dirpart" \
          && sed -e '/# am--include-marker/d' "$am_filepart" \
            | $MAKE -f - am--depfiles" >&5
       (cd "$am_dirpart" \
          && sed -e '/# am--include-marker/d' "$am_filepart" \
            | $MAKE -f - am--depfiles) >&5 2>&5
       ac_status=$?
       echo "$as_me:$LINENO: \$? = $ac_status" >&5
       (exit $ac_status); } || am_rc=$?
      done
      if test $am_rc -ne 0; then
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    as_fn_error $? "Something went wrong bootstrapping makefile fragments
        for automatic dependency tracking.  Try re-running configure with the
        '--disable-dependency-tracking' option to at least be able to build
        the package (albeit without support for automatic dependency tracking).
    See \`config.log' for more details" "$LINENO" 5; }
      fi
      { am_dirpart=; unset am_dirpart;}
      { am_filepart=; unset am_filepart;}
      { am_mf=; unset am_mf;}
      { am_rc=; unset am_rc;}
      rm -f conftest-deps.mk
    }
     ;;
    
      esac
    done # for ac_tag
    
    
    as_fn_exit 0
    ./ciwiki-3.0.4/README000777 001750 001750 00000002536 14264016647 016423 0ustar00jpredonnetjpredonnet000000 000000 CiWiki is a fork of DidiWiki 
    Please, don't forget to read file in the folder docs
    JP Redonnet. 
    
    CiWiki README
    ==============
    
    CiWiki is a small and simple WikiWikiWeb implementation written in
    C. It's intended for personal use for notes, Todo lists, etc. It includes
    its' own webserver and hopefully its as simple as just compiling, running
    and pointing your browser at it. 
    
    Installation
    ============
    
    To build do the usual:
    ./configure
    make
    sudo make install
    
    => In case of error with make,
    1°) Try to run: autoreconf -f -i before ./configure and make.
    2°) If autoreconf didn't solve the problem, try to run: sh autogen.sh.
    
    Then type: ciwiki -a -s
    
    On startup it'll tell you the address to point your browser at. 
    You should then be ready to go. 
    
    To notify new users via email of their validation code, login and password,
    you need ssmpt and the script notifynewuser.sh .
    notifynewuser.sh is located in the folder /usr/local/libexec
    (sudo make install should copy this script on the right place).
    If you install this script in another place, you will have to edit 
    the line #89 in ciwiki-2.x.x/src/ci.h
    #define SCRIPTMAIL "/usr/local/libexec/notifynewuser.sh>/dev/null 2>&1 &" 
    #define SCRIPTMAIL "/new place/notifynewuser.sh>/dev/null 2>&1 &" 
    
    If you do not use the default port 8000, you will have to edit notifynewuser.sh 
    line #25 to provide the actual port #.
    ./ciwiki-3.0.4/config.h.in000664 001750 001750 00000012170 14274674432 017557 0ustar00jpredonnetjpredonnet000000 000000 /* config.h.in.  Generated from configure.ac by autoheader.  */
    
    /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
       systems. This function is required for `alloca.c' support on those systems.
       */
    #undef CRAY_STACKSEG_END
    
    /* Define to 1 if using `alloca.c'. */
    #undef C_ALLOCA
    
    /* Define to 1 if you have `alloca', as a function or macro. */
    #undef HAVE_ALLOCA
    
    /* Define to 1 if you have  and it should be used (not on Ultrix).
       */
    #undef HAVE_ALLOCA_H
    
    /* Define to 1 if you have the  header file. */
    #undef HAVE_ARPA_INET_H
    
    /* Define to 1 if you have the `asprintf' function. */
    #undef HAVE_ASPRINTF
    
    /* Define to 1 if you have the  header file, and it defines `DIR'.
       */
    #undef HAVE_DIRENT_H
    
    /* Define to 1 if you have the `fork' function. */
    #undef HAVE_FORK
    
    /* Define to 1 if you have the `inet_ntoa' function. */
    #undef HAVE_INET_NTOA
    
    /* Define to 1 if you have the  header file. */
    #undef HAVE_INTTYPES_H
    
    /* Define to 1 if you have the  header file. */
    #undef HAVE_MEMORY_H
    
    /* Define to 1 if you have the `memset' function. */
    #undef HAVE_MEMSET
    
    /* Define to 1 if you have the `mkdir' function. */
    #undef HAVE_MKDIR
    
    /* Define to 1 if you have the  header file, and it defines `DIR'. */
    #undef HAVE_NDIR_H
    
    /* Define to 1 if you have the  header file. */
    #undef HAVE_NETINET_IN_H
    
    /* Define to 1 if you have the `putenv' function. */
    #undef HAVE_PUTENV
    
    /* Define to 1 if you have the `select' function. */
    #undef HAVE_SELECT
    
    /* Define to 1 if you have the `socket' function. */
    #undef HAVE_SOCKET
    
    /* Define to 1 if `stat' has the bug that it succeeds when given the
       zero-length file name argument. */
    #undef HAVE_STAT_EMPTY_STRING_BUG
    
    /* Define to 1 if you have the  header file. */
    #undef HAVE_STDINT_H
    
    /* Define to 1 if you have the  header file. */
    #undef HAVE_STDLIB_H
    
    /* Define to 1 if you have the `strdup' function. */
    #undef HAVE_STRDUP
    
    /* Define to 1 if you have the `strftime' function. */
    #undef HAVE_STRFTIME
    
    /* Define to 1 if you have the  header file. */
    #undef HAVE_STRINGS_H
    
    /* Define to 1 if you have the  header file. */
    #undef HAVE_STRING_H
    
    /* Define to 1 if you have the `strncasecmp' function. */
    #undef HAVE_STRNCASECMP
    
    /* Define to 1 if you have the  header file, and it defines `DIR'.
       */
    #undef HAVE_SYS_DIR_H
    
    /* Define to 1 if you have the  header file, and it defines `DIR'.
       */
    #undef HAVE_SYS_NDIR_H
    
    /* Define to 1 if you have the  header file. */
    #undef HAVE_SYS_SELECT_H
    
    /* Define to 1 if you have the  header file. */
    #undef HAVE_SYS_SOCKET_H
    
    /* Define to 1 if you have the  header file. */
    #undef HAVE_SYS_STAT_H
    
    /* Define to 1 if you have the  header file. */
    #undef HAVE_SYS_TIME_H
    
    /* Define to 1 if you have the  header file. */
    #undef HAVE_SYS_TYPES_H
    
    /* Define to 1 if you have  that is POSIX.1 compatible. */
    #undef HAVE_SYS_WAIT_H
    
    /* Define to 1 if you have the  header file. */
    #undef HAVE_UNISTD_H
    
    /* Define to 1 if you have the `vfork' function. */
    #undef HAVE_VFORK
    
    /* Define to 1 if you have the  header file. */
    #undef HAVE_VFORK_H
    
    /* Define to 1 if `fork' works. */
    #undef HAVE_WORKING_FORK
    
    /* Define to 1 if `vfork' works. */
    #undef HAVE_WORKING_VFORK
    
    /* Define to 1 if `lstat' dereferences a symlink specified with a trailing
       slash. */
    #undef LSTAT_FOLLOWS_SLASHED_SYMLINK
    
    /* Name of package */
    #undef PACKAGE
    
    /* Define to the address where bug reports for this package should be sent. */
    #undef PACKAGE_BUGREPORT
    
    /* Define to the full name of this package. */
    #undef PACKAGE_NAME
    
    /* Define to the full name and version of this package. */
    #undef PACKAGE_STRING
    
    /* Define to the one symbol short name of this package. */
    #undef PACKAGE_TARNAME
    
    /* Define to the home page for this package. */
    #undef PACKAGE_URL
    
    /* Define to the version of this package. */
    #undef PACKAGE_VERSION
    
    /* Define to the type of arg 1 for `select'. */
    #undef SELECT_TYPE_ARG1
    
    /* Define to the type of args 2, 3 and 4 for `select'. */
    #undef SELECT_TYPE_ARG234
    
    /* Define to the type of arg 5 for `select'. */
    #undef SELECT_TYPE_ARG5
    
    /* If using the C implementation of alloca, define if you know the
       direction of stack growth for your system; otherwise it will be
       automatically deduced at runtime.
    	STACK_DIRECTION > 0 => grows toward higher addresses
    	STACK_DIRECTION < 0 => grows toward lower addresses
    	STACK_DIRECTION = 0 => direction of growth unknown */
    #undef STACK_DIRECTION
    
    /* Define to 1 if you have the ANSI C header files. */
    #undef STDC_HEADERS
    
    /* Define to 1 if you can safely include both  and . */
    #undef TIME_WITH_SYS_TIME
    
    /* Define to 1 if your  declares `struct tm'. */
    #undef TM_IN_SYS_TIME
    
    /* Version number of package */
    #undef VERSION
    
    /* Define to empty if `const' does not conform to ANSI C. */
    #undef const
    
    /* Define to `int' if  does not define. */
    #undef pid_t
    
    /* Define to `unsigned int' if  does not define. */
    #undef size_t
    
    /* Define as `fork' if `vfork' does not work. */
    #undef vfork
    ./ciwiki-3.0.4/ciwiki.conf000777 001750 001750 00000000461 12457502646 017665 0ustar00jpredonnetjpredonnet000000 000000 # Defaults for ciwiki initscript
    # sourced by /etc/init.d/ciwiki or /etc/rc.d/rc.ciwiki (Slackware)
    # installed at /etc/default/ciwiki by the maintainer scripts
    # or installed at /etc/ciwiki.conf (Slackware)
    #
    # This is a POSIX shell fragment
    #
    
    # run central copy of ciwiki?
    ENABLE_DAEMON=yes
    
    PORT=8000
    ./ciwiki-3.0.4/Makefile000664 001750 001750 00000060316 14274674204 017176 0ustar00jpredonnetjpredonnet000000 000000 # Makefile.in generated by automake 1.16.1 from Makefile.am.
    # Makefile.  Generated from Makefile.in by configure.
    
    # Copyright (C) 1994-2018 Free Software Foundation, Inc.
    
    # This Makefile.in is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
    
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
    # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    # PARTICULAR PURPOSE.
    
    
    
    am__is_gnu_make = { \
      if test -z '$(MAKELEVEL)'; then \
        false; \
      elif test -n '$(MAKE_HOST)'; then \
        true; \
      elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
        true; \
      else \
        false; \
      fi; \
    }
    am__make_running_with_option = \
      case $${target_option-} in \
          ?) ;; \
          *) echo "am__make_running_with_option: internal error: invalid" \
                  "target option '$${target_option-}' specified" >&2; \
             exit 1;; \
      esac; \
      has_opt=no; \
      sane_makeflags=$$MAKEFLAGS; \
      if $(am__is_gnu_make); then \
        sane_makeflags=$$MFLAGS; \
      else \
        case $$MAKEFLAGS in \
          *\\[\ \	]*) \
            bs=\\; \
            sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
              | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
        esac; \
      fi; \
      skip_next=no; \
      strip_trailopt () \
      { \
        flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
      }; \
      for flg in $$sane_makeflags; do \
        test $$skip_next = yes && { skip_next=no; continue; }; \
        case $$flg in \
          *=*|--*) continue;; \
            -*I) strip_trailopt 'I'; skip_next=yes;; \
          -*I?*) strip_trailopt 'I';; \
            -*O) strip_trailopt 'O'; skip_next=yes;; \
          -*O?*) strip_trailopt 'O';; \
            -*l) strip_trailopt 'l'; skip_next=yes;; \
          -*l?*) strip_trailopt 'l';; \
          -[dEDm]) skip_next=yes;; \
          -[JT]) skip_next=yes;; \
        esac; \
        case $$flg in \
          *$$target_option*) has_opt=yes; break;; \
        esac; \
      done; \
      test $$has_opt = yes
    am__make_dryrun = (target_option=n; $(am__make_running_with_option))
    am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
    pkgdatadir = $(datadir)/ciwiki
    pkgincludedir = $(includedir)/ciwiki
    pkglibdir = $(libdir)/ciwiki
    pkglibexecdir = $(libexecdir)/ciwiki
    am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
    install_sh_DATA = $(install_sh) -c -m 644
    install_sh_PROGRAM = $(install_sh) -c
    install_sh_SCRIPT = $(install_sh) -c
    INSTALL_HEADER = $(INSTALL_DATA)
    transform = $(program_transform_name)
    NORMAL_INSTALL = :
    PRE_INSTALL = :
    POST_INSTALL = :
    NORMAL_UNINSTALL = :
    PRE_UNINSTALL = :
    POST_UNINSTALL = :
    subdir = .
    ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    am__aclocal_m4_deps = $(top_srcdir)/configure.ac
    am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
    	$(ACLOCAL_M4)
    DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
    	$(am__configure_deps) $(am__DIST_COMMON)
    am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
     configure.lineno config.status.lineno
    mkinstalldirs = $(install_sh) -d
    CONFIG_HEADER = config.h
    CONFIG_CLEAN_FILES =
    CONFIG_CLEAN_VPATH_FILES =
    AM_V_P = $(am__v_P_$(V))
    am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
    am__v_P_0 = false
    am__v_P_1 = :
    AM_V_GEN = $(am__v_GEN_$(V))
    am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
    am__v_GEN_0 = @echo "  GEN     " $@;
    am__v_GEN_1 = 
    AM_V_at = $(am__v_at_$(V))
    am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
    am__v_at_0 = @
    am__v_at_1 = 
    SOURCES =
    DIST_SOURCES =
    RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
    	ctags-recursive dvi-recursive html-recursive info-recursive \
    	install-data-recursive install-dvi-recursive \
    	install-exec-recursive install-html-recursive \
    	install-info-recursive install-pdf-recursive \
    	install-ps-recursive install-recursive installcheck-recursive \
    	installdirs-recursive pdf-recursive ps-recursive \
    	tags-recursive uninstall-recursive
    am__can_run_installinfo = \
      case $$AM_UPDATE_INFO_DIR in \
        n|no|NO) false;; \
        *) (install-info --version) >/dev/null 2>&1;; \
      esac
    RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive	\
      distclean-recursive maintainer-clean-recursive
    am__recursive_targets = \
      $(RECURSIVE_TARGETS) \
      $(RECURSIVE_CLEAN_TARGETS) \
      $(am__extra_recursive_targets)
    AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
    	cscope distdir distdir-am dist dist-all distcheck
    am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
    	$(LISP)config.h.in
    # Read a list of newline-separated strings from the standard input,
    # and print each of them once, without duplicates.  Input order is
    # *not* preserved.
    am__uniquify_input = $(AWK) '\
      BEGIN { nonempty = 0; } \
      { items[$$0] = 1; nonempty = 1; } \
      END { if (nonempty) { for (i in items) print i; }; } \
    '
    # Make sure the list of sources is unique.  This is necessary because,
    # e.g., the same source file might be shared among _SOURCES variables
    # for different programs/libraries.
    am__define_uniq_tagged_files = \
      list='$(am__tagged_files)'; \
      unique=`for i in $$list; do \
        if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
      done | $(am__uniquify_input)`
    ETAGS = etags
    CTAGS = ctags
    CSCOPE = cscope
    DIST_SUBDIRS = $(SUBDIRS)
    am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in AUTHORS \
    	COPYING ChangeLog INSTALL NEWS README compile depcomp \
    	install-sh missing
    DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
    distdir = $(PACKAGE)-$(VERSION)
    top_distdir = $(distdir)
    am__remove_distdir = \
      if test -d "$(distdir)"; then \
        find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
          && rm -rf "$(distdir)" \
          || { sleep 5 && rm -rf "$(distdir)"; }; \
      else :; fi
    am__post_remove_distdir = $(am__remove_distdir)
    am__relativize = \
      dir0=`pwd`; \
      sed_first='s,^\([^/]*\)/.*$$,\1,'; \
      sed_rest='s,^[^/]*/*,,'; \
      sed_last='s,^.*/\([^/]*\)$$,\1,'; \
      sed_butlast='s,/*[^/]*$$,,'; \
      while test -n "$$dir1"; do \
        first=`echo "$$dir1" | sed -e "$$sed_first"`; \
        if test "$$first" != "."; then \
          if test "$$first" = ".."; then \
            dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
            dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
          else \
            first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
            if test "$$first2" = "$$first"; then \
              dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
            else \
              dir2="../$$dir2"; \
            fi; \
            dir0="$$dir0"/"$$first"; \
          fi; \
        fi; \
        dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
      done; \
      reldir="$$dir2"
    DIST_ARCHIVES = $(distdir).tar.gz
    GZIP_ENV = --best
    DIST_TARGETS = dist-gzip
    distuninstallcheck_listfiles = find . -type f -print
    am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
      | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
    distcleancheck_listfiles = find . -type f -print
    ACLOCAL = ${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing aclocal-1.16
    ALLOCA = 
    AMTAR = $${TAR-tar}
    AM_DEFAULT_VERBOSITY = 1
    AUTOCONF = ${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing autoconf
    AUTOHEADER = ${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing autoheader
    AUTOMAKE = ${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing automake-1.16
    AWK = mawk
    CC = gcc
    CCDEPMODE = depmode=gcc3
    CFLAGS = -g -O2
    CPP = gcc -E
    CPPFLAGS = 
    CYGPATH_W = echo
    DEFS = -DHAVE_CONFIG_H
    DEPDIR = .deps
    ECHO_C = 
    ECHO_N = -n
    ECHO_T = 
    EGREP = /bin/grep -E
    EXEEXT = 
    GCC_FLAGS = -g -Wall -fno-strict-aliasing
    GREP = /bin/grep
    INSTALL = /usr/bin/install -c
    INSTALL_DATA = ${INSTALL} -m 644
    INSTALL_PROGRAM = ${INSTALL}
    INSTALL_SCRIPT = ${INSTALL}
    INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
    LDFLAGS = 
    LIBOBJS = 
    LIBS = 
    LTLIBOBJS = 
    MAKEINFO = ${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing makeinfo
    MKDIR_P = /bin/mkdir -p
    OBJEXT = o
    PACKAGE = ciwiki
    PACKAGE_BUGREPORT = inphilly@gmail.com
    PACKAGE_NAME = ciwiki
    PACKAGE_STRING = ciwiki 3.0.4
    PACKAGE_TARNAME = ciwiki
    PACKAGE_URL = 
    PACKAGE_VERSION = 3.0.4
    PATH_SEPARATOR = :
    SET_MAKE = 
    SHELL = /bin/bash
    STRIP = 
    VERSION = 3.0.4
    abs_builddir = /home/jpredonnet/ciwiki/ciwiki-3.0.4
    abs_srcdir = /home/jpredonnet/ciwiki/ciwiki-3.0.4
    abs_top_builddir = /home/jpredonnet/ciwiki/ciwiki-3.0.4
    abs_top_srcdir = /home/jpredonnet/ciwiki/ciwiki-3.0.4
    ac_ct_CC = gcc
    am__include = include
    am__leading_dot = .
    am__quote = 
    am__tar = $${TAR-tar} chof - "$$tardir"
    am__untar = $${TAR-tar} xf -
    bindir = ${exec_prefix}/bin
    build_alias = 
    builddir = .
    datadir = ${datarootdir}
    datarootdir = ${prefix}/share
    docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
    dvidir = ${docdir}
    exec_prefix = ${prefix}
    host_alias = 
    htmldir = ${docdir}
    includedir = ${prefix}/include
    infodir = ${datarootdir}/info
    install_sh = ${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/install-sh
    libdir = ${exec_prefix}/lib
    libexecdir = ${exec_prefix}/libexec
    localedir = ${datarootdir}/locale
    localstatedir = ${prefix}/var
    mandir = ${datarootdir}/man
    mkdir_p = $(MKDIR_P)
    oldincludedir = /usr/include
    pdfdir = ${docdir}
    prefix = /usr/local
    program_transform_name = s,x,x,
    psdir = ${docdir}
    runstatedir = ${localstatedir}/run
    sbindir = ${exec_prefix}/sbin
    sharedstatedir = ${prefix}/com
    srcdir = .
    sysconfdir = ${prefix}/etc
    target_alias = 
    top_build_prefix = 
    top_builddir = .
    top_srcdir = .
    SUBDIRS = src scripts docs
    EXTRA_DIST = styles.css ciwiki.png ciwiki.conf docs/ciwiki.man
    all: config.h
    	$(MAKE) $(AM_MAKEFLAGS) all-recursive
    
    .SUFFIXES:
    am--refresh: Makefile
    	@:
    $(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
    	@for dep in $?; do \
    	  case '$(am__configure_deps)' in \
    	    *$$dep*) \
    	      echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
    	      $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
    		&& exit 0; \
    	      exit 1;; \
    	  esac; \
    	done; \
    	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
    	$(am__cd) $(top_srcdir) && \
    	  $(AUTOMAKE) --gnu Makefile
    Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
    	@case '$?' in \
    	  *config.status*) \
    	    echo ' $(SHELL) ./config.status'; \
    	    $(SHELL) ./config.status;; \
    	  *) \
    	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
    	    cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
    	esac;
    
    $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
    	$(SHELL) ./config.status --recheck
    
    $(top_srcdir)/configure:  $(am__configure_deps)
    	$(am__cd) $(srcdir) && $(AUTOCONF)
    $(ACLOCAL_M4):  $(am__aclocal_m4_deps)
    	$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
    $(am__aclocal_m4_deps):
    
    config.h: stamp-h1
    	@test -f $@ || rm -f stamp-h1
    	@test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
    
    stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
    	@rm -f stamp-h1
    	cd $(top_builddir) && $(SHELL) ./config.status config.h
    $(srcdir)/config.h.in:  $(am__configure_deps) 
    	($(am__cd) $(top_srcdir) && $(AUTOHEADER))
    	rm -f stamp-h1
    	touch $@
    
    distclean-hdr:
    	-rm -f config.h stamp-h1
    
    # This directory's subdirectories are mostly independent; you can cd
    # into them and run 'make' without going through this Makefile.
    # To change the values of 'make' variables: instead of editing Makefiles,
    # (1) if the variable is set in 'config.status', edit 'config.status'
    #     (which will cause the Makefiles to be regenerated when you run 'make');
    # (2) otherwise, pass the desired values on the 'make' command line.
    $(am__recursive_targets):
    	@fail=; \
    	if $(am__make_keepgoing); then \
    	  failcom='fail=yes'; \
    	else \
    	  failcom='exit 1'; \
    	fi; \
    	dot_seen=no; \
    	target=`echo $@ | sed s/-recursive//`; \
    	case "$@" in \
    	  distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
    	  *) list='$(SUBDIRS)' ;; \
    	esac; \
    	for subdir in $$list; do \
    	  echo "Making $$target in $$subdir"; \
    	  if test "$$subdir" = "."; then \
    	    dot_seen=yes; \
    	    local_target="$$target-am"; \
    	  else \
    	    local_target="$$target"; \
    	  fi; \
    	  ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
    	  || eval $$failcom; \
    	done; \
    	if test "$$dot_seen" = "no"; then \
    	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
    	fi; test -z "$$fail"
    
    ID: $(am__tagged_files)
    	$(am__define_uniq_tagged_files); mkid -fID $$unique
    tags: tags-recursive
    TAGS: tags
    
    tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
    	set x; \
    	here=`pwd`; \
    	if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
    	  include_option=--etags-include; \
    	  empty_fix=.; \
    	else \
    	  include_option=--include; \
    	  empty_fix=; \
    	fi; \
    	list='$(SUBDIRS)'; for subdir in $$list; do \
    	  if test "$$subdir" = .; then :; else \
    	    test ! -f $$subdir/TAGS || \
    	      set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
    	  fi; \
    	done; \
    	$(am__define_uniq_tagged_files); \
    	shift; \
    	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
    	  test -n "$$unique" || unique=$$empty_fix; \
    	  if test $$# -gt 0; then \
    	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
    	      "$$@" $$unique; \
    	  else \
    	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
    	      $$unique; \
    	  fi; \
    	fi
    ctags: ctags-recursive
    
    CTAGS: ctags
    ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
    	$(am__define_uniq_tagged_files); \
    	test -z "$(CTAGS_ARGS)$$unique" \
    	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
    	     $$unique
    
    GTAGS:
    	here=`$(am__cd) $(top_builddir) && pwd` \
    	  && $(am__cd) $(top_srcdir) \
    	  && gtags -i $(GTAGS_ARGS) "$$here"
    cscope: cscope.files
    	test ! -s cscope.files \
    	  || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
    clean-cscope:
    	-rm -f cscope.files
    cscope.files: clean-cscope cscopelist
    cscopelist: cscopelist-recursive
    
    cscopelist-am: $(am__tagged_files)
    	list='$(am__tagged_files)'; \
    	case "$(srcdir)" in \
    	  [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
    	  *) sdir=$(subdir)/$(srcdir) ;; \
    	esac; \
    	for i in $$list; do \
    	  if test -f "$$i"; then \
    	    echo "$(subdir)/$$i"; \
    	  else \
    	    echo "$$sdir/$$i"; \
    	  fi; \
    	done >> $(top_builddir)/cscope.files
    
    distclean-tags:
    	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
    	-rm -f cscope.out cscope.in.out cscope.po.out cscope.files
    
    distdir: $(BUILT_SOURCES)
    	$(MAKE) $(AM_MAKEFLAGS) distdir-am
    
    distdir-am: $(DISTFILES)
    	$(am__remove_distdir)
    	test -d "$(distdir)" || mkdir "$(distdir)"
    	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
    	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
    	list='$(DISTFILES)'; \
    	  dist_files=`for file in $$list; do echo $$file; done | \
    	  sed -e "s|^$$srcdirstrip/||;t" \
    	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
    	case $$dist_files in \
    	  */*) $(MKDIR_P) `echo "$$dist_files" | \
    			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
    			   sort -u` ;; \
    	esac; \
    	for file in $$dist_files; do \
    	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
    	  if test -d $$d/$$file; then \
    	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
    	    if test -d "$(distdir)/$$file"; then \
    	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
    	    fi; \
    	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
    	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
    	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
    	    fi; \
    	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
    	  else \
    	    test -f "$(distdir)/$$file" \
    	    || cp -p $$d/$$file "$(distdir)/$$file" \
    	    || exit 1; \
    	  fi; \
    	done
    	@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
    	  if test "$$subdir" = .; then :; else \
    	    $(am__make_dryrun) \
    	      || test -d "$(distdir)/$$subdir" \
    	      || $(MKDIR_P) "$(distdir)/$$subdir" \
    	      || exit 1; \
    	    dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
    	    $(am__relativize); \
    	    new_distdir=$$reldir; \
    	    dir1=$$subdir; dir2="$(top_distdir)"; \
    	    $(am__relativize); \
    	    new_top_distdir=$$reldir; \
    	    echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
    	    echo "     am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
    	    ($(am__cd) $$subdir && \
    	      $(MAKE) $(AM_MAKEFLAGS) \
    	        top_distdir="$$new_top_distdir" \
    	        distdir="$$new_distdir" \
    		am__remove_distdir=: \
    		am__skip_length_check=: \
    		am__skip_mode_fix=: \
    	        distdir) \
    	      || exit 1; \
    	  fi; \
    	done
    	-test -n "$(am__skip_mode_fix)" \
    	|| find "$(distdir)" -type d ! -perm -755 \
    		-exec chmod u+rwx,go+rx {} \; -o \
    	  ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
    	  ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
    	  ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
    	|| chmod -R a+r "$(distdir)"
    dist-gzip: distdir
    	tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
    	$(am__post_remove_distdir)
    
    dist-bzip2: distdir
    	tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
    	$(am__post_remove_distdir)
    
    dist-lzip: distdir
    	tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
    	$(am__post_remove_distdir)
    
    dist-xz: distdir
    	tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
    	$(am__post_remove_distdir)
    
    dist-tarZ: distdir
    	@echo WARNING: "Support for distribution archives compressed with" \
    		       "legacy program 'compress' is deprecated." >&2
    	@echo WARNING: "It will be removed altogether in Automake 2.0" >&2
    	tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
    	$(am__post_remove_distdir)
    
    dist-shar: distdir
    	@echo WARNING: "Support for shar distribution archives is" \
    	               "deprecated." >&2
    	@echo WARNING: "It will be removed altogether in Automake 2.0" >&2
    	shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
    	$(am__post_remove_distdir)
    
    dist-zip: distdir
    	-rm -f $(distdir).zip
    	zip -rq $(distdir).zip $(distdir)
    	$(am__post_remove_distdir)
    
    dist dist-all:
    	$(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
    	$(am__post_remove_distdir)
    
    # This target untars the dist file and tries a VPATH configuration.  Then
    # it guarantees that the distribution is self-contained by making another
    # tarfile.
    distcheck: dist
    	case '$(DIST_ARCHIVES)' in \
    	*.tar.gz*) \
    	  eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
    	*.tar.bz2*) \
    	  bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
    	*.tar.lz*) \
    	  lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
    	*.tar.xz*) \
    	  xz -dc $(distdir).tar.xz | $(am__untar) ;;\
    	*.tar.Z*) \
    	  uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
    	*.shar.gz*) \
    	  eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
    	*.zip*) \
    	  unzip $(distdir).zip ;;\
    	esac
    	chmod -R a-w $(distdir)
    	chmod u+w $(distdir)
    	mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
    	chmod a-w $(distdir)
    	test -d $(distdir)/_build || exit 0; \
    	dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
    	  && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
    	  && am__cwd=`pwd` \
    	  && $(am__cd) $(distdir)/_build/sub \
    	  && ../../configure \
    	    $(AM_DISTCHECK_CONFIGURE_FLAGS) \
    	    $(DISTCHECK_CONFIGURE_FLAGS) \
    	    --srcdir=../.. --prefix="$$dc_install_base" \
    	  && $(MAKE) $(AM_MAKEFLAGS) \
    	  && $(MAKE) $(AM_MAKEFLAGS) dvi \
    	  && $(MAKE) $(AM_MAKEFLAGS) check \
    	  && $(MAKE) $(AM_MAKEFLAGS) install \
    	  && $(MAKE) $(AM_MAKEFLAGS) installcheck \
    	  && $(MAKE) $(AM_MAKEFLAGS) uninstall \
    	  && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
    	        distuninstallcheck \
    	  && chmod -R a-w "$$dc_install_base" \
    	  && ({ \
    	       (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
    	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
    	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
    	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
    	            distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
    	      } || { rm -rf "$$dc_destdir"; exit 1; }) \
    	  && rm -rf "$$dc_destdir" \
    	  && $(MAKE) $(AM_MAKEFLAGS) dist \
    	  && rm -rf $(DIST_ARCHIVES) \
    	  && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
    	  && cd "$$am__cwd" \
    	  || exit 1
    	$(am__post_remove_distdir)
    	@(echo "$(distdir) archives ready for distribution: "; \
    	  list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
    	  sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
    distuninstallcheck:
    	@test -n '$(distuninstallcheck_dir)' || { \
    	  echo 'ERROR: trying to run $@ with an empty' \
    	       '$$(distuninstallcheck_dir)' >&2; \
    	  exit 1; \
    	}; \
    	$(am__cd) '$(distuninstallcheck_dir)' || { \
    	  echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
    	  exit 1; \
    	}; \
    	test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
    	   || { echo "ERROR: files left after uninstall:" ; \
    	        if test -n "$(DESTDIR)"; then \
    	          echo "  (check DESTDIR support)"; \
    	        fi ; \
    	        $(distuninstallcheck_listfiles) ; \
    	        exit 1; } >&2
    distcleancheck: distclean
    	@if test '$(srcdir)' = . ; then \
    	  echo "ERROR: distcleancheck can only run from a VPATH build" ; \
    	  exit 1 ; \
    	fi
    	@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
    	  || { echo "ERROR: files left in build directory after distclean:" ; \
    	       $(distcleancheck_listfiles) ; \
    	       exit 1; } >&2
    check-am: all-am
    check: check-recursive
    all-am: Makefile config.h
    installdirs: installdirs-recursive
    installdirs-am:
    install: install-recursive
    install-exec: install-exec-recursive
    install-data: install-data-recursive
    uninstall: uninstall-recursive
    
    install-am: all-am
    	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
    
    installcheck: installcheck-recursive
    install-strip:
    	if test -z '$(STRIP)'; then \
    	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
    	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
    	      install; \
    	else \
    	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
    	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
    	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
    	fi
    mostlyclean-generic:
    
    clean-generic:
    
    distclean-generic:
    	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
    	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
    
    maintainer-clean-generic:
    	@echo "This command is intended for maintainers to use"
    	@echo "it deletes files that may require special tools to rebuild."
    clean: clean-recursive
    
    clean-am: clean-generic mostlyclean-am
    
    distclean: distclean-recursive
    	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
    	-rm -f Makefile
    distclean-am: clean-am distclean-generic distclean-hdr distclean-tags
    
    dvi: dvi-recursive
    
    dvi-am:
    
    html: html-recursive
    
    html-am:
    
    info: info-recursive
    
    info-am:
    
    install-data-am:
    
    install-dvi: install-dvi-recursive
    
    install-dvi-am:
    
    install-exec-am:
    
    install-html: install-html-recursive
    
    install-html-am:
    
    install-info: install-info-recursive
    
    install-info-am:
    
    install-man:
    
    install-pdf: install-pdf-recursive
    
    install-pdf-am:
    
    install-ps: install-ps-recursive
    
    install-ps-am:
    
    installcheck-am:
    
    maintainer-clean: maintainer-clean-recursive
    	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
    	-rm -rf $(top_srcdir)/autom4te.cache
    	-rm -f Makefile
    maintainer-clean-am: distclean-am maintainer-clean-generic
    
    mostlyclean: mostlyclean-recursive
    
    mostlyclean-am: mostlyclean-generic
    
    pdf: pdf-recursive
    
    pdf-am:
    
    ps: ps-recursive
    
    ps-am:
    
    uninstall-am:
    
    .MAKE: $(am__recursive_targets) all install-am install-strip
    
    .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
    	am--refresh check check-am clean clean-cscope clean-generic \
    	cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
    	dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
    	distcheck distclean distclean-generic distclean-hdr \
    	distclean-tags distcleancheck distdir distuninstallcheck dvi \
    	dvi-am html html-am info info-am install install-am \
    	install-data install-data-am install-dvi install-dvi-am \
    	install-exec install-exec-am install-html install-html-am \
    	install-info install-info-am install-man install-pdf \
    	install-pdf-am install-ps install-ps-am install-strip \
    	installcheck installcheck-am installdirs installdirs-am \
    	maintainer-clean maintainer-clean-generic mostlyclean \
    	mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
    	uninstall-am
    
    .PRECIOUS: Makefile
    
    
    snapshot:
    	$(MAKE) dist distdir=$(PACKAGE)-snapshot-`date +"%Y%m%d"`
    
    # Tell versions [3.59,3.63) of GNU make to not export all variables.
    # Otherwise a system limit (for SysV at least) may be exceeded.
    .NOEXPORT:
    ./ciwiki-3.0.4/README.md000777 001750 001750 00000000104 12552725453 017007 0ustar00jpredonnetjpredonnet000000 000000 # ciwiki
    Lightweight wiki for personal notes and collaborative wiki
    ./ciwiki-3.0.4/config.log000664 001750 001750 00000073102 14274674432 017506 0ustar00jpredonnetjpredonnet000000 000000 This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.
    
    It was created by ciwiki configure 3.0.4, which was
    generated by GNU Autoconf 2.69.  Invocation command line was
    
      $ ./configure 
    
    ## --------- ##
    ## Platform. ##
    ## --------- ##
    
    hostname = jpredonnet-AOD257
    uname -m = x86_64
    uname -r = 5.4.0-122-lowlatency
    uname -s = Linux
    uname -v = #138-Ubuntu SMP PREEMPT Wed Jun 22 15:43:23 UTC 2022
    
    /usr/bin/uname -p = unknown
    /bin/uname -X     = unknown
    
    /bin/arch              = unknown
    /usr/bin/arch -k       = unknown
    /usr/convex/getsysinfo = unknown
    /usr/bin/hostinfo      = unknown
    /bin/machine           = unknown
    /usr/bin/oslevel       = unknown
    /bin/universe          = unknown
    
    PATH: /usr/local/sbin
    PATH: /usr/local/bin
    PATH: /usr/sbin
    PATH: /usr/bin
    PATH: /sbin
    PATH: /bin
    PATH: /usr/games
    PATH: /usr/local/games
    PATH: /snap/bin
    
    
    ## ----------- ##
    ## Core tests. ##
    ## ----------- ##
    
    configure:2256: checking for a BSD-compatible install
    configure:2324: result: /usr/bin/install -c
    configure:2335: checking whether build environment is sane
    configure:2390: result: yes
    configure:2539: checking for a thread-safe mkdir -p
    configure:2578: result: /bin/mkdir -p
    configure:2585: checking for gawk
    configure:2615: result: no
    configure:2585: checking for mawk
    configure:2601: found /usr/bin/mawk
    configure:2612: result: mawk
    configure:2623: checking whether make sets $(MAKE)
    configure:2645: result: yes
    configure:2674: checking whether make supports nested variables
    configure:2691: result: yes
    configure:2867: checking for gcc
    configure:2883: found /usr/bin/gcc
    configure:2894: result: gcc
    configure:3123: checking for C compiler version
    configure:3132: gcc --version >&5
    gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
    Copyright (C) 2019 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    
    configure:3143: $? = 0
    configure:3132: gcc -v >&5
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
    OFFLOAD_TARGET_NAMES=nvptx-none:hsa
    OFFLOAD_TARGET_DEFAULT=1
    Target: x86_64-linux-gnu
    Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.4.0-1ubuntu1~20.04.1' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-Av3uEd/gcc-9-9.4.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
    Thread model: posix
    gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1) 
    configure:3143: $? = 0
    configure:3132: gcc -V >&5
    gcc: error: unrecognized command line option '-V'
    gcc: fatal error: no input files
    compilation terminated.
    configure:3143: $? = 1
    configure:3132: gcc -qversion >&5
    gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
    gcc: fatal error: no input files
    compilation terminated.
    configure:3143: $? = 1
    configure:3163: checking whether the C compiler works
    configure:3185: gcc    conftest.c  >&5
    configure:3189: $? = 0
    configure:3237: result: yes
    configure:3240: checking for C compiler default output file name
    configure:3242: result: a.out
    configure:3248: checking for suffix of executables
    configure:3255: gcc -o conftest    conftest.c  >&5
    configure:3259: $? = 0
    configure:3281: result: 
    configure:3303: checking whether we are cross compiling
    configure:3311: gcc -o conftest    conftest.c  >&5
    configure:3315: $? = 0
    configure:3322: ./conftest
    configure:3326: $? = 0
    configure:3314: result: no
    configure:3319: checking for suffix of object files
    configure:3341: gcc -c   conftest.c >&5
    configure:3345: $? = 0
    configure:3366: result: o
    configure:3370: checking whether we are using the GNU C compiler
    configure:3389: gcc -c   conftest.c >&5
    configure:3389: $? = 0
    configure:3398: result: yes
    configure:3407: checking whether gcc accepts -g
    configure:3427: gcc -c -g  conftest.c >&5
    configure:3427: $? = 0
    configure:3468: result: yes
    configure:3485: checking for gcc option to accept ISO C89
    configure:3548: gcc  -c -g -O2  conftest.c >&5
    configure:3548: $? = 0
    configure:3561: result: none needed
    configure:3586: checking whether gcc understands -c and -o together
    configure:3608: gcc -c conftest.c -o conftest2.o
    configure:3611: $? = 0
    configure:3608: gcc -c conftest.c -o conftest2.o
    configure:3611: $? = 0
    configure:3623: result: yes
    configure:3643: checking whether make supports the include directive
    configure:3658: make -f confmf.GNU && cat confinc.out
    this is the am__doit target
    configure:3661: $? = 0
    configure:3680: result: yes (GNU style)
    configure:3705: checking dependency style of gcc
    configure:3816: result: gcc3
    configure:3839: checking for dirent.h that defines DIR
    configure:3858: gcc -c -g -O2  conftest.c >&5
    configure:3858: $? = 0
    configure:3866: result: yes
    configure:3879: checking for library containing opendir
    configure:3910: gcc -o conftest -g -O2   conftest.c  >&5
    configure:3910: $? = 0
    configure:3927: result: none required
    configure:3999: checking how to run the C preprocessor
    configure:4030: gcc -E  conftest.c
    configure:4030: $? = 0
    configure:4044: gcc -E  conftest.c
    conftest.c:12:10: fatal error: ac_nonexistent.h: No such file or directory
       12 | #include 
          |          ^~~~~~~~~~~~~~~~~~
    compilation terminated.
    configure:4044: $? = 1
    configure: failed program was:
    | /* confdefs.h */
    | #define PACKAGE_NAME "ciwiki"
    | #define PACKAGE_TARNAME "ciwiki"
    | #define PACKAGE_VERSION "3.0.4"
    | #define PACKAGE_STRING "ciwiki 3.0.4"
    | #define PACKAGE_BUGREPORT "inphilly@gmail.com"
    | #define PACKAGE_URL ""
    | #define PACKAGE "ciwiki"
    | #define VERSION "3.0.4"
    | #define HAVE_DIRENT_H 1
    | /* end confdefs.h.  */
    | #include 
    configure:4069: result: gcc -E
    configure:4089: gcc -E  conftest.c
    configure:4089: $? = 0
    configure:4103: gcc -E  conftest.c
    conftest.c:12:10: fatal error: ac_nonexistent.h: No such file or directory
       12 | #include 
          |          ^~~~~~~~~~~~~~~~~~
    compilation terminated.
    configure:4103: $? = 1
    configure: failed program was:
    | /* confdefs.h */
    | #define PACKAGE_NAME "ciwiki"
    | #define PACKAGE_TARNAME "ciwiki"
    | #define PACKAGE_VERSION "3.0.4"
    | #define PACKAGE_STRING "ciwiki 3.0.4"
    | #define PACKAGE_BUGREPORT "inphilly@gmail.com"
    | #define PACKAGE_URL ""
    | #define PACKAGE "ciwiki"
    | #define VERSION "3.0.4"
    | #define HAVE_DIRENT_H 1
    | /* end confdefs.h.  */
    | #include 
    configure:4132: checking for grep that handles long lines and -e
    configure:4190: result: /bin/grep
    configure:4195: checking for egrep
    configure:4257: result: /bin/grep -E
    configure:4262: checking for ANSI C header files
    configure:4282: gcc -c -g -O2  conftest.c >&5
    configure:4282: $? = 0
    configure:4355: gcc -o conftest -g -O2   conftest.c  >&5
    configure:4355: $? = 0
    configure:4355: ./conftest
    configure:4355: $? = 0
    configure:4366: result: yes
    configure:4374: checking for sys/wait.h that is POSIX.1 compatible
    configure:4400: gcc -c -g -O2  conftest.c >&5
    configure:4400: $? = 0
    configure:4407: result: yes
    configure:4420: checking for sys/types.h
    configure:4420: gcc -c -g -O2  conftest.c >&5
    configure:4420: $? = 0
    configure:4420: result: yes
    configure:4420: checking for sys/stat.h
    configure:4420: gcc -c -g -O2  conftest.c >&5
    configure:4420: $? = 0
    configure:4420: result: yes
    configure:4420: checking for stdlib.h
    configure:4420: gcc -c -g -O2  conftest.c >&5
    configure:4420: $? = 0
    configure:4420: result: yes
    configure:4420: checking for string.h
    configure:4420: gcc -c -g -O2  conftest.c >&5
    configure:4420: $? = 0
    configure:4420: result: yes
    configure:4420: checking for memory.h
    configure:4420: gcc -c -g -O2  conftest.c >&5
    configure:4420: $? = 0
    configure:4420: result: yes
    configure:4420: checking for strings.h
    configure:4420: gcc -c -g -O2  conftest.c >&5
    configure:4420: $? = 0
    configure:4420: result: yes
    configure:4420: checking for inttypes.h
    configure:4420: gcc -c -g -O2  conftest.c >&5
    configure:4420: $? = 0
    configure:4420: result: yes
    configure:4420: checking for stdint.h
    configure:4420: gcc -c -g -O2  conftest.c >&5
    configure:4420: $? = 0
    configure:4420: result: yes
    configure:4420: checking for unistd.h
    configure:4420: gcc -c -g -O2  conftest.c >&5
    configure:4420: $? = 0
    configure:4420: result: yes
    configure:4435: checking arpa/inet.h usability
    configure:4435: gcc -c -g -O2  conftest.c >&5
    configure:4435: $? = 0
    configure:4435: result: yes
    configure:4435: checking arpa/inet.h presence
    configure:4435: gcc -E  conftest.c
    configure:4435: $? = 0
    configure:4435: result: yes
    configure:4435: checking for arpa/inet.h
    configure:4435: result: yes
    configure:4435: checking netinet/in.h usability
    configure:4435: gcc -c -g -O2  conftest.c >&5
    configure:4435: $? = 0
    configure:4435: result: yes
    configure:4435: checking netinet/in.h presence
    configure:4435: gcc -E  conftest.c
    configure:4435: $? = 0
    configure:4435: result: yes
    configure:4435: checking for netinet/in.h
    configure:4435: result: yes
    configure:4435: checking for stdlib.h
    configure:4435: result: yes
    configure:4435: checking for string.h
    configure:4435: result: yes
    configure:4435: checking sys/socket.h usability
    configure:4435: gcc -c -g -O2  conftest.c >&5
    configure:4435: $? = 0
    configure:4435: result: yes
    configure:4435: checking sys/socket.h presence
    configure:4435: gcc -E  conftest.c
    configure:4435: $? = 0
    configure:4435: result: yes
    configure:4435: checking for sys/socket.h
    configure:4435: result: yes
    configure:4435: checking sys/time.h usability
    configure:4435: gcc -c -g -O2  conftest.c >&5
    configure:4435: $? = 0
    configure:4435: result: yes
    configure:4435: checking sys/time.h presence
    configure:4435: gcc -E  conftest.c
    configure:4435: $? = 0
    configure:4435: result: yes
    configure:4435: checking for sys/time.h
    configure:4435: result: yes
    configure:4435: checking for unistd.h
    configure:4435: result: yes
    configure:4447: checking for an ANSI C-conforming const
    configure:4513: gcc -c -g -O2  conftest.c >&5
    configure:4513: $? = 0
    configure:4520: result: yes
    configure:4528: checking whether time.h and sys/time.h may both be included
    configure:4548: gcc -c -g -O2  conftest.c >&5
    configure:4548: $? = 0
    configure:4555: result: yes
    configure:4563: checking whether struct tm is in sys/time.h or time.h
    configure:4583: gcc -c -g -O2  conftest.c >&5
    configure:4583: $? = 0
    configure:4590: result: time.h
    configure:4600: checking for size_t
    configure:4600: gcc -c -g -O2  conftest.c >&5
    configure:4600: $? = 0
    configure:4600: gcc -c -g -O2  conftest.c >&5
    conftest.c: In function 'main':
    conftest.c:67:21: error: expected expression before ')' token
       67 | if (sizeof ((size_t)))
          |                     ^
    configure:4600: $? = 1
    configure: failed program was:
    | /* confdefs.h */
    | #define PACKAGE_NAME "ciwiki"
    | #define PACKAGE_TARNAME "ciwiki"
    | #define PACKAGE_VERSION "3.0.4"
    | #define PACKAGE_STRING "ciwiki 3.0.4"
    | #define PACKAGE_BUGREPORT "inphilly@gmail.com"
    | #define PACKAGE_URL ""
    | #define PACKAGE "ciwiki"
    | #define VERSION "3.0.4"
    | #define HAVE_DIRENT_H 1
    | #define STDC_HEADERS 1
    | #define HAVE_SYS_WAIT_H 1
    | #define HAVE_SYS_TYPES_H 1
    | #define HAVE_SYS_STAT_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_MEMORY_H 1
    | #define HAVE_STRINGS_H 1
    | #define HAVE_INTTYPES_H 1
    | #define HAVE_STDINT_H 1
    | #define HAVE_UNISTD_H 1
    | #define HAVE_ARPA_INET_H 1
    | #define HAVE_NETINET_IN_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_SYS_SOCKET_H 1
    | #define HAVE_SYS_TIME_H 1
    | #define HAVE_UNISTD_H 1
    | #define TIME_WITH_SYS_TIME 1
    | /* end confdefs.h.  */
    | #include 
    | #ifdef HAVE_SYS_TYPES_H
    | # include 
    | #endif
    | #ifdef HAVE_SYS_STAT_H
    | # include 
    | #endif
    | #ifdef STDC_HEADERS
    | # include 
    | # include 
    | #else
    | # ifdef HAVE_STDLIB_H
    | #  include 
    | # endif
    | #endif
    | #ifdef HAVE_STRING_H
    | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    | #  include 
    | # endif
    | # include 
    | #endif
    | #ifdef HAVE_STRINGS_H
    | # include 
    | #endif
    | #ifdef HAVE_INTTYPES_H
    | # include 
    | #endif
    | #ifdef HAVE_STDINT_H
    | # include 
    | #endif
    | #ifdef HAVE_UNISTD_H
    | # include 
    | #endif
    | int
    | main ()
    | {
    | if (sizeof ((size_t)))
    | 	    return 0;
    |   ;
    |   return 0;
    | }
    configure:4600: result: yes
    configure:4613: checking for working alloca.h
    configure:4630: gcc -o conftest -g -O2   conftest.c  >&5
    configure:4630: $? = 0
    configure:4638: result: yes
    configure:4646: checking for alloca
    configure:4683: gcc -o conftest -g -O2   conftest.c  >&5
    configure:4683: $? = 0
    configure:4691: result: yes
    configure:4797: checking for pid_t
    configure:4797: gcc -c -g -O2  conftest.c >&5
    configure:4797: $? = 0
    configure:4797: gcc -c -g -O2  conftest.c >&5
    conftest.c: In function 'main':
    conftest.c:69:20: error: expected expression before ')' token
       69 | if (sizeof ((pid_t)))
          |                    ^
    configure:4797: $? = 1
    configure: failed program was:
    | /* confdefs.h */
    | #define PACKAGE_NAME "ciwiki"
    | #define PACKAGE_TARNAME "ciwiki"
    | #define PACKAGE_VERSION "3.0.4"
    | #define PACKAGE_STRING "ciwiki 3.0.4"
    | #define PACKAGE_BUGREPORT "inphilly@gmail.com"
    | #define PACKAGE_URL ""
    | #define PACKAGE "ciwiki"
    | #define VERSION "3.0.4"
    | #define HAVE_DIRENT_H 1
    | #define STDC_HEADERS 1
    | #define HAVE_SYS_WAIT_H 1
    | #define HAVE_SYS_TYPES_H 1
    | #define HAVE_SYS_STAT_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_MEMORY_H 1
    | #define HAVE_STRINGS_H 1
    | #define HAVE_INTTYPES_H 1
    | #define HAVE_STDINT_H 1
    | #define HAVE_UNISTD_H 1
    | #define HAVE_ARPA_INET_H 1
    | #define HAVE_NETINET_IN_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_SYS_SOCKET_H 1
    | #define HAVE_SYS_TIME_H 1
    | #define HAVE_UNISTD_H 1
    | #define TIME_WITH_SYS_TIME 1
    | #define HAVE_ALLOCA_H 1
    | #define HAVE_ALLOCA 1
    | /* end confdefs.h.  */
    | #include 
    | #ifdef HAVE_SYS_TYPES_H
    | # include 
    | #endif
    | #ifdef HAVE_SYS_STAT_H
    | # include 
    | #endif
    | #ifdef STDC_HEADERS
    | # include 
    | # include 
    | #else
    | # ifdef HAVE_STDLIB_H
    | #  include 
    | # endif
    | #endif
    | #ifdef HAVE_STRING_H
    | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    | #  include 
    | # endif
    | # include 
    | #endif
    | #ifdef HAVE_STRINGS_H
    | # include 
    | #endif
    | #ifdef HAVE_INTTYPES_H
    | # include 
    | #endif
    | #ifdef HAVE_STDINT_H
    | # include 
    | #endif
    | #ifdef HAVE_UNISTD_H
    | # include 
    | #endif
    | int
    | main ()
    | {
    | if (sizeof ((pid_t)))
    | 	    return 0;
    |   ;
    |   return 0;
    | }
    configure:4797: result: yes
    configure:4810: checking vfork.h usability
    configure:4810: gcc -c -g -O2  conftest.c >&5
    conftest.c:66:10: fatal error: vfork.h: No such file or directory
       66 | #include 
          |          ^~~~~~~~~
    compilation terminated.
    configure:4810: $? = 1
    configure: failed program was:
    | /* confdefs.h */
    | #define PACKAGE_NAME "ciwiki"
    | #define PACKAGE_TARNAME "ciwiki"
    | #define PACKAGE_VERSION "3.0.4"
    | #define PACKAGE_STRING "ciwiki 3.0.4"
    | #define PACKAGE_BUGREPORT "inphilly@gmail.com"
    | #define PACKAGE_URL ""
    | #define PACKAGE "ciwiki"
    | #define VERSION "3.0.4"
    | #define HAVE_DIRENT_H 1
    | #define STDC_HEADERS 1
    | #define HAVE_SYS_WAIT_H 1
    | #define HAVE_SYS_TYPES_H 1
    | #define HAVE_SYS_STAT_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_MEMORY_H 1
    | #define HAVE_STRINGS_H 1
    | #define HAVE_INTTYPES_H 1
    | #define HAVE_STDINT_H 1
    | #define HAVE_UNISTD_H 1
    | #define HAVE_ARPA_INET_H 1
    | #define HAVE_NETINET_IN_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_SYS_SOCKET_H 1
    | #define HAVE_SYS_TIME_H 1
    | #define HAVE_UNISTD_H 1
    | #define TIME_WITH_SYS_TIME 1
    | #define HAVE_ALLOCA_H 1
    | #define HAVE_ALLOCA 1
    | /* end confdefs.h.  */
    | #include 
    | #ifdef HAVE_SYS_TYPES_H
    | # include 
    | #endif
    | #ifdef HAVE_SYS_STAT_H
    | # include 
    | #endif
    | #ifdef STDC_HEADERS
    | # include 
    | # include 
    | #else
    | # ifdef HAVE_STDLIB_H
    | #  include 
    | # endif
    | #endif
    | #ifdef HAVE_STRING_H
    | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    | #  include 
    | # endif
    | # include 
    | #endif
    | #ifdef HAVE_STRINGS_H
    | # include 
    | #endif
    | #ifdef HAVE_INTTYPES_H
    | # include 
    | #endif
    | #ifdef HAVE_STDINT_H
    | # include 
    | #endif
    | #ifdef HAVE_UNISTD_H
    | # include 
    | #endif
    | #include 
    configure:4810: result: no
    configure:4810: checking vfork.h presence
    configure:4810: gcc -E  conftest.c
    conftest.c:33:10: fatal error: vfork.h: No such file or directory
       33 | #include 
          |          ^~~~~~~~~
    compilation terminated.
    configure:4810: $? = 1
    configure: failed program was:
    | /* confdefs.h */
    | #define PACKAGE_NAME "ciwiki"
    | #define PACKAGE_TARNAME "ciwiki"
    | #define PACKAGE_VERSION "3.0.4"
    | #define PACKAGE_STRING "ciwiki 3.0.4"
    | #define PACKAGE_BUGREPORT "inphilly@gmail.com"
    | #define PACKAGE_URL ""
    | #define PACKAGE "ciwiki"
    | #define VERSION "3.0.4"
    | #define HAVE_DIRENT_H 1
    | #define STDC_HEADERS 1
    | #define HAVE_SYS_WAIT_H 1
    | #define HAVE_SYS_TYPES_H 1
    | #define HAVE_SYS_STAT_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_MEMORY_H 1
    | #define HAVE_STRINGS_H 1
    | #define HAVE_INTTYPES_H 1
    | #define HAVE_STDINT_H 1
    | #define HAVE_UNISTD_H 1
    | #define HAVE_ARPA_INET_H 1
    | #define HAVE_NETINET_IN_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_SYS_SOCKET_H 1
    | #define HAVE_SYS_TIME_H 1
    | #define HAVE_UNISTD_H 1
    | #define TIME_WITH_SYS_TIME 1
    | #define HAVE_ALLOCA_H 1
    | #define HAVE_ALLOCA 1
    | /* end confdefs.h.  */
    | #include 
    configure:4810: result: no
    configure:4810: checking for vfork.h
    configure:4810: result: no
    configure:4823: checking for fork
    configure:4823: gcc -o conftest -g -O2   conftest.c  >&5
    conftest.c:56:6: warning: conflicting types for built-in function 'fork'; expected 'int(void)' [-Wbuiltin-declaration-mismatch]
       56 | char fork ();
          |      ^~~~
    configure:4823: $? = 0
    configure:4823: result: yes
    configure:4823: checking for vfork
    configure:4823: gcc -o conftest -g -O2   conftest.c  >&5
    configure:4823: $? = 0
    configure:4823: result: yes
    configure:4833: checking for working fork
    configure:4855: gcc -o conftest -g -O2   conftest.c  >&5
    configure:4855: $? = 0
    configure:4855: ./conftest
    configure:4855: $? = 0
    configure:4865: result: yes
    configure:4886: checking for working vfork
    configure:4996: result: yes
    configure:5024: checking sys/select.h usability
    configure:5024: gcc -c -g -O2  conftest.c >&5
    configure:5024: $? = 0
    configure:5024: result: yes
    configure:5024: checking sys/select.h presence
    configure:5024: gcc -E  conftest.c
    configure:5024: $? = 0
    configure:5024: result: yes
    configure:5024: checking for sys/select.h
    configure:5024: result: yes
    configure:5024: checking for sys/socket.h
    configure:5024: result: yes
    configure:5034: checking types of arguments for select
    configure:5062: gcc -c -g -O2  conftest.c >&5
    configure:5062: $? = 0
    configure:5073: result: int,fd_set *,struct timeval *
    configure:5096: checking whether lstat correctly handles trailing slash
    configure:5122: gcc -o conftest -g -O2   conftest.c  >&5
    configure:5122: $? = 0
    configure:5122: ./conftest
    configure:5122: $? = 0
    configure:5139: result: yes
    configure:5158: checking whether stat accepts an empty string
    configure:5178: gcc -o conftest -g -O2   conftest.c  >&5
    configure:5178: $? = 0
    configure:5178: ./conftest
    configure:5178: $? = 0
    configure:5188: result: no
    configure:5206: checking for strftime
    configure:5206: gcc -o conftest -g -O2   conftest.c  >&5
    conftest.c:66:6: warning: conflicting types for built-in function 'strftime'; expected 'long unsigned int(char *, long unsigned int,  const char *, const void *)' [-Wbuiltin-declaration-mismatch]
       66 | char strftime ();
          |      ^~~~~~~~
    conftest.c:54:1: note: 'strftime' is declared in header ''
       53 | # include 
       54 | #else
    configure:5206: $? = 0
    configure:5206: result: yes
    configure:5262: checking for asprintf
    configure:5262: gcc -o conftest -g -O2   conftest.c  >&5
    configure:5262: $? = 0
    configure:5262: result: yes
    configure:5262: checking for inet_ntoa
    configure:5262: gcc -o conftest -g -O2   conftest.c  >&5
    configure:5262: $? = 0
    configure:5262: result: yes
    configure:5262: checking for memset
    configure:5262: gcc -o conftest -g -O2   conftest.c  >&5
    conftest.c:69:6: warning: conflicting types for built-in function 'memset'; expected 'void *(void *, int,  long unsigned int)' [-Wbuiltin-declaration-mismatch]
       69 | char memset ();
          |      ^~~~~~
    conftest.c:57:1: note: 'memset' is declared in header ''
       56 | # include 
       57 | #else
    configure:5262: $? = 0
    configure:5262: result: yes
    configure:5262: checking for mkdir
    configure:5262: gcc -o conftest -g -O2   conftest.c  >&5
    configure:5262: $? = 0
    configure:5262: result: yes
    configure:5262: checking for putenv
    configure:5262: gcc -o conftest -g -O2   conftest.c  >&5
    configure:5262: $? = 0
    configure:5262: result: yes
    configure:5262: checking for select
    configure:5262: gcc -o conftest -g -O2   conftest.c  >&5
    configure:5262: $? = 0
    configure:5262: result: yes
    configure:5262: checking for socket
    configure:5262: gcc -o conftest -g -O2   conftest.c  >&5
    configure:5262: $? = 0
    configure:5262: result: yes
    configure:5262: checking for strdup
    configure:5262: gcc -o conftest -g -O2   conftest.c  >&5
    conftest.c:74:6: warning: conflicting types for built-in function 'strdup'; expected 'char *(const char *)' [-Wbuiltin-declaration-mismatch]
       74 | char strdup ();
          |      ^~~~~~
    configure:5262: $? = 0
    configure:5262: result: yes
    configure:5262: checking for strncasecmp
    configure:5262: gcc -o conftest -g -O2   conftest.c  >&5
    conftest.c:75:6: warning: conflicting types for built-in function 'strncasecmp'; expected 'int(const char *, const char *, long unsigned int)' [-Wbuiltin-declaration-mismatch]
       75 | char strncasecmp ();
          |      ^~~~~~~~~~~
    configure:5262: $? = 0
    configure:5262: result: yes
    configure:5380: checking that generated files are newer than configure
    configure:5386: result: done
    configure:5409: creating ./config.status
    
    ## ---------------------- ##
    ## Running config.status. ##
    ## ---------------------- ##
    
    This file was extended by ciwiki config.status 3.0.4, which was
    generated by GNU Autoconf 2.69.  Invocation command line was
    
      CONFIG_FILES    = 
      CONFIG_HEADERS  = 
      CONFIG_LINKS    = 
      CONFIG_COMMANDS = 
      $ ./config.status 
    
    on jpredonnet-AOD257
    
    config.status:886: creating Makefile
    config.status:886: creating src/Makefile
    config.status:886: creating scripts/Makefile
    config.status:886: creating docs/Makefile
    config.status:886: creating config.h
    config.status:1067: config.h is unchanged
    config.status:1115: executing depfiles commands
    config.status:1192: cd src       && sed -e '/# am--include-marker/d' Makefile         | make -f - am--depfiles
    make: Nothing to be done for 'am--depfiles'.
    config.status:1197: $? = 0
    
    ## ---------------- ##
    ## Cache variables. ##
    ## ---------------- ##
    
    ac_cv_c_compiler_gnu=yes
    ac_cv_c_const=yes
    ac_cv_env_CC_set=
    ac_cv_env_CC_value=
    ac_cv_env_CFLAGS_set=
    ac_cv_env_CFLAGS_value=
    ac_cv_env_CPPFLAGS_set=
    ac_cv_env_CPPFLAGS_value=
    ac_cv_env_CPP_set=
    ac_cv_env_CPP_value=
    ac_cv_env_LDFLAGS_set=
    ac_cv_env_LDFLAGS_value=
    ac_cv_env_LIBS_set=
    ac_cv_env_LIBS_value=
    ac_cv_env_build_alias_set=
    ac_cv_env_build_alias_value=
    ac_cv_env_host_alias_set=
    ac_cv_env_host_alias_value=
    ac_cv_env_target_alias_set=
    ac_cv_env_target_alias_value=
    ac_cv_func_alloca_works=yes
    ac_cv_func_asprintf=yes
    ac_cv_func_fork=yes
    ac_cv_func_fork_works=yes
    ac_cv_func_inet_ntoa=yes
    ac_cv_func_lstat_dereferences_slashed_symlink=yes
    ac_cv_func_memset=yes
    ac_cv_func_mkdir=yes
    ac_cv_func_putenv=yes
    ac_cv_func_select=yes
    ac_cv_func_select_args='int,fd_set *,struct timeval *'
    ac_cv_func_socket=yes
    ac_cv_func_stat_empty_string_bug=no
    ac_cv_func_strdup=yes
    ac_cv_func_strftime=yes
    ac_cv_func_strncasecmp=yes
    ac_cv_func_vfork=yes
    ac_cv_func_vfork_works=yes
    ac_cv_header_arpa_inet_h=yes
    ac_cv_header_dirent_dirent_h=yes
    ac_cv_header_inttypes_h=yes
    ac_cv_header_memory_h=yes
    ac_cv_header_netinet_in_h=yes
    ac_cv_header_stdc=yes
    ac_cv_header_stdint_h=yes
    ac_cv_header_stdlib_h=yes
    ac_cv_header_string_h=yes
    ac_cv_header_strings_h=yes
    ac_cv_header_sys_select_h=yes
    ac_cv_header_sys_socket_h=yes
    ac_cv_header_sys_stat_h=yes
    ac_cv_header_sys_time_h=yes
    ac_cv_header_sys_types_h=yes
    ac_cv_header_sys_wait_h=yes
    ac_cv_header_time=yes
    ac_cv_header_unistd_h=yes
    ac_cv_header_vfork_h=no
    ac_cv_objext=o
    ac_cv_path_EGREP='/bin/grep -E'
    ac_cv_path_GREP=/bin/grep
    ac_cv_path_install='/usr/bin/install -c'
    ac_cv_path_mkdir=/bin/mkdir
    ac_cv_prog_AWK=mawk
    ac_cv_prog_CPP='gcc -E'
    ac_cv_prog_ac_ct_CC=gcc
    ac_cv_prog_cc_c89=
    ac_cv_prog_cc_g=yes
    ac_cv_prog_make_make_set=yes
    ac_cv_search_opendir='none required'
    ac_cv_struct_tm=time.h
    ac_cv_type_pid_t=yes
    ac_cv_type_size_t=yes
    ac_cv_working_alloca_h=yes
    am_cv_CC_dependencies_compiler_type=gcc3
    am_cv_make_support_nested_variables=yes
    am_cv_prog_cc_c_o=yes
    
    ## ----------------- ##
    ## Output variables. ##
    ## ----------------- ##
    
    ACLOCAL='${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing aclocal-1.16'
    ALLOCA=''
    AMDEPBACKSLASH='\'
    AMDEP_FALSE='#'
    AMDEP_TRUE=''
    AMTAR='$${TAR-tar}'
    AM_BACKSLASH='\'
    AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
    AM_DEFAULT_VERBOSITY='1'
    AM_V='$(V)'
    AUTOCONF='${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing autoconf'
    AUTOHEADER='${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing autoheader'
    AUTOMAKE='${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing automake-1.16'
    AWK='mawk'
    CC='gcc'
    CCDEPMODE='depmode=gcc3'
    CFLAGS='-g -O2'
    CPP='gcc -E'
    CPPFLAGS=''
    CYGPATH_W='echo'
    DEFS='-DHAVE_CONFIG_H'
    DEPDIR='.deps'
    ECHO_C=''
    ECHO_N='-n'
    ECHO_T=''
    EGREP='/bin/grep -E'
    EXEEXT=''
    GCC_FLAGS='-g -Wall -fno-strict-aliasing'
    GREP='/bin/grep'
    INSTALL_DATA='${INSTALL} -m 644'
    INSTALL_PROGRAM='${INSTALL}'
    INSTALL_SCRIPT='${INSTALL}'
    INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
    LDFLAGS=''
    LIBOBJS=''
    LIBS=''
    LTLIBOBJS=''
    MAKEINFO='${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing makeinfo'
    MKDIR_P='/bin/mkdir -p'
    OBJEXT='o'
    PACKAGE='ciwiki'
    PACKAGE_BUGREPORT='inphilly@gmail.com'
    PACKAGE_NAME='ciwiki'
    PACKAGE_STRING='ciwiki 3.0.4'
    PACKAGE_TARNAME='ciwiki'
    PACKAGE_URL=''
    PACKAGE_VERSION='3.0.4'
    PATH_SEPARATOR=':'
    SET_MAKE=''
    SHELL='/bin/bash'
    STRIP=''
    VERSION='3.0.4'
    ac_ct_CC='gcc'
    am__EXEEXT_FALSE=''
    am__EXEEXT_TRUE='#'
    am__fastdepCC_FALSE='#'
    am__fastdepCC_TRUE=''
    am__include='include'
    am__isrc=''
    am__leading_dot='.'
    am__nodep='_no'
    am__quote=''
    am__tar='$${TAR-tar} chof - "$$tardir"'
    am__untar='$${TAR-tar} xf -'
    bindir='${exec_prefix}/bin'
    build_alias=''
    datadir='${datarootdir}'
    datarootdir='${prefix}/share'
    docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    dvidir='${docdir}'
    exec_prefix='${prefix}'
    host_alias=''
    htmldir='${docdir}'
    includedir='${prefix}/include'
    infodir='${datarootdir}/info'
    install_sh='${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/install-sh'
    libdir='${exec_prefix}/lib'
    libexecdir='${exec_prefix}/libexec'
    localedir='${datarootdir}/locale'
    localstatedir='${prefix}/var'
    mandir='${datarootdir}/man'
    mkdir_p='$(MKDIR_P)'
    oldincludedir='/usr/include'
    pdfdir='${docdir}'
    prefix='/usr/local'
    program_transform_name='s,x,x,'
    psdir='${docdir}'
    runstatedir='${localstatedir}/run'
    sbindir='${exec_prefix}/sbin'
    sharedstatedir='${prefix}/com'
    sysconfdir='${prefix}/etc'
    target_alias=''
    
    ## ----------- ##
    ## confdefs.h. ##
    ## ----------- ##
    
    /* confdefs.h */
    #define PACKAGE_NAME "ciwiki"
    #define PACKAGE_TARNAME "ciwiki"
    #define PACKAGE_VERSION "3.0.4"
    #define PACKAGE_STRING "ciwiki 3.0.4"
    #define PACKAGE_BUGREPORT "inphilly@gmail.com"
    #define PACKAGE_URL ""
    #define PACKAGE "ciwiki"
    #define VERSION "3.0.4"
    #define HAVE_DIRENT_H 1
    #define STDC_HEADERS 1
    #define HAVE_SYS_WAIT_H 1
    #define HAVE_SYS_TYPES_H 1
    #define HAVE_SYS_STAT_H 1
    #define HAVE_STDLIB_H 1
    #define HAVE_STRING_H 1
    #define HAVE_MEMORY_H 1
    #define HAVE_STRINGS_H 1
    #define HAVE_INTTYPES_H 1
    #define HAVE_STDINT_H 1
    #define HAVE_UNISTD_H 1
    #define HAVE_ARPA_INET_H 1
    #define HAVE_NETINET_IN_H 1
    #define HAVE_STDLIB_H 1
    #define HAVE_STRING_H 1
    #define HAVE_SYS_SOCKET_H 1
    #define HAVE_SYS_TIME_H 1
    #define HAVE_UNISTD_H 1
    #define TIME_WITH_SYS_TIME 1
    #define HAVE_ALLOCA_H 1
    #define HAVE_ALLOCA 1
    #define HAVE_FORK 1
    #define HAVE_VFORK 1
    #define HAVE_WORKING_VFORK 1
    #define HAVE_WORKING_FORK 1
    #define HAVE_SYS_SELECT_H 1
    #define HAVE_SYS_SOCKET_H 1
    #define SELECT_TYPE_ARG1 int
    #define SELECT_TYPE_ARG234 (fd_set *)
    #define SELECT_TYPE_ARG5 (struct timeval *)
    #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
    #define HAVE_STRFTIME 1
    #define HAVE_ASPRINTF 1
    #define HAVE_INET_NTOA 1
    #define HAVE_MEMSET 1
    #define HAVE_MKDIR 1
    #define HAVE_PUTENV 1
    #define HAVE_SELECT 1
    #define HAVE_SOCKET 1
    #define HAVE_STRDUP 1
    #define HAVE_STRNCASECMP 1
    
    configure: exit 0
    
    ## ---------------------- ##
    ## Running config.status. ##
    ## ---------------------- ##
    
    This file was extended by ciwiki config.status 3.0.4, which was
    generated by GNU Autoconf 2.69.  Invocation command line was
    
      CONFIG_FILES    = 
      CONFIG_HEADERS  = 
      CONFIG_LINKS    = 
      CONFIG_COMMANDS = 
      $ ./config.status config.h
    
    on jpredonnet-AOD257
    
    config.status:886: creating config.h
    config.status:1067: config.h is unchanged
    ./ciwiki-3.0.4/compile000755 001750 001750 00000016327 14264013246 017105 0ustar00jpredonnetjpredonnet000000 000000 #! /bin/sh
    # Wrapper for compilers which do not understand '-c -o'.
    
    scriptversion=2018-03-07.03; # UTC
    
    # Copyright (C) 1999-2018 Free Software Foundation, Inc.
    # Written by Tom Tromey .
    #
    # This program is free software; you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation; either version 2, or (at your option)
    # any later version.
    #
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    # GNU General Public License for more details.
    #
    # You should have received a copy of the GNU General Public License
    # along with this program.  If not, see .
    
    # As a special exception to the GNU General Public License, if you
    # distribute this file as part of a program that contains a
    # configuration script generated by Autoconf, you may include it under
    # the same distribution terms that you use for the rest of that program.
    
    # This file is maintained in Automake, please report
    # bugs to  or send patches to
    # .
    
    nl='
    '
    
    # We need space, tab and new line, in precisely that order.  Quoting is
    # there to prevent tools from complaining about whitespace usage.
    IFS=" ""	$nl"
    
    file_conv=
    
    # func_file_conv build_file lazy
    # Convert a $build file to $host form and store it in $file
    # Currently only supports Windows hosts. If the determined conversion
    # type is listed in (the comma separated) LAZY, no conversion will
    # take place.
    func_file_conv ()
    {
      file=$1
      case $file in
        / | /[!/]*) # absolute file, and not a UNC file
          if test -z "$file_conv"; then
    	# lazily determine how to convert abs files
    	case `uname -s` in
    	  MINGW*)
    	    file_conv=mingw
    	    ;;
    	  CYGWIN*)
    	    file_conv=cygwin
    	    ;;
    	  *)
    	    file_conv=wine
    	    ;;
    	esac
          fi
          case $file_conv/,$2, in
    	*,$file_conv,*)
    	  ;;
    	mingw/*)
    	  file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
    	  ;;
    	cygwin/*)
    	  file=`cygpath -m "$file" || echo "$file"`
    	  ;;
    	wine/*)
    	  file=`winepath -w "$file" || echo "$file"`
    	  ;;
          esac
          ;;
      esac
    }
    
    # func_cl_dashL linkdir
    # Make cl look for libraries in LINKDIR
    func_cl_dashL ()
    {
      func_file_conv "$1"
      if test -z "$lib_path"; then
        lib_path=$file
      else
        lib_path="$lib_path;$file"
      fi
      linker_opts="$linker_opts -LIBPATH:$file"
    }
    
    # func_cl_dashl library
    # Do a library search-path lookup for cl
    func_cl_dashl ()
    {
      lib=$1
      found=no
      save_IFS=$IFS
      IFS=';'
      for dir in $lib_path $LIB
      do
        IFS=$save_IFS
        if $shared && test -f "$dir/$lib.dll.lib"; then
          found=yes
          lib=$dir/$lib.dll.lib
          break
        fi
        if test -f "$dir/$lib.lib"; then
          found=yes
          lib=$dir/$lib.lib
          break
        fi
        if test -f "$dir/lib$lib.a"; then
          found=yes
          lib=$dir/lib$lib.a
          break
        fi
      done
      IFS=$save_IFS
    
      if test "$found" != yes; then
        lib=$lib.lib
      fi
    }
    
    # func_cl_wrapper cl arg...
    # Adjust compile command to suit cl
    func_cl_wrapper ()
    {
      # Assume a capable shell
      lib_path=
      shared=:
      linker_opts=
      for arg
      do
        if test -n "$eat"; then
          eat=
        else
          case $1 in
    	-o)
    	  # configure might choose to run compile as 'compile cc -o foo foo.c'.
    	  eat=1
    	  case $2 in
    	    *.o | *.[oO][bB][jJ])
    	      func_file_conv "$2"
    	      set x "$@" -Fo"$file"
    	      shift
    	      ;;
    	    *)
    	      func_file_conv "$2"
    	      set x "$@" -Fe"$file"
    	      shift
    	      ;;
    	  esac
    	  ;;
    	-I)
    	  eat=1
    	  func_file_conv "$2" mingw
    	  set x "$@" -I"$file"
    	  shift
    	  ;;
    	-I*)
    	  func_file_conv "${1#-I}" mingw
    	  set x "$@" -I"$file"
    	  shift
    	  ;;
    	-l)
    	  eat=1
    	  func_cl_dashl "$2"
    	  set x "$@" "$lib"
    	  shift
    	  ;;
    	-l*)
    	  func_cl_dashl "${1#-l}"
    	  set x "$@" "$lib"
    	  shift
    	  ;;
    	-L)
    	  eat=1
    	  func_cl_dashL "$2"
    	  ;;
    	-L*)
    	  func_cl_dashL "${1#-L}"
    	  ;;
    	-static)
    	  shared=false
    	  ;;
    	-Wl,*)
    	  arg=${1#-Wl,}
    	  save_ifs="$IFS"; IFS=','
    	  for flag in $arg; do
    	    IFS="$save_ifs"
    	    linker_opts="$linker_opts $flag"
    	  done
    	  IFS="$save_ifs"
    	  ;;
    	-Xlinker)
    	  eat=1
    	  linker_opts="$linker_opts $2"
    	  ;;
    	-*)
    	  set x "$@" "$1"
    	  shift
    	  ;;
    	*.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
    	  func_file_conv "$1"
    	  set x "$@" -Tp"$file"
    	  shift
    	  ;;
    	*.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
    	  func_file_conv "$1" mingw
    	  set x "$@" "$file"
    	  shift
    	  ;;
    	*)
    	  set x "$@" "$1"
    	  shift
    	  ;;
          esac
        fi
        shift
      done
      if test -n "$linker_opts"; then
        linker_opts="-link$linker_opts"
      fi
      exec "$@" $linker_opts
      exit 1
    }
    
    eat=
    
    case $1 in
      '')
         echo "$0: No command.  Try '$0 --help' for more information." 1>&2
         exit 1;
         ;;
      -h | --h*)
        cat <<\EOF
    Usage: compile [--help] [--version] PROGRAM [ARGS]
    
    Wrapper for compilers which do not understand '-c -o'.
    Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
    arguments, and rename the output as expected.
    
    If you are trying to build a whole package this is not the
    right script to run: please start by reading the file 'INSTALL'.
    
    Report bugs to .
    EOF
        exit $?
        ;;
      -v | --v*)
        echo "compile $scriptversion"
        exit $?
        ;;
      cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
      icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
        func_cl_wrapper "$@"      # Doesn't return...
        ;;
    esac
    
    ofile=
    cfile=
    
    for arg
    do
      if test -n "$eat"; then
        eat=
      else
        case $1 in
          -o)
    	# configure might choose to run compile as 'compile cc -o foo foo.c'.
    	# So we strip '-o arg' only if arg is an object.
    	eat=1
    	case $2 in
    	  *.o | *.obj)
    	    ofile=$2
    	    ;;
    	  *)
    	    set x "$@" -o "$2"
    	    shift
    	    ;;
    	esac
    	;;
          *.c)
    	cfile=$1
    	set x "$@" "$1"
    	shift
    	;;
          *)
    	set x "$@" "$1"
    	shift
    	;;
        esac
      fi
      shift
    done
    
    if test -z "$ofile" || test -z "$cfile"; then
      # If no '-o' option was seen then we might have been invoked from a
      # pattern rule where we don't need one.  That is ok -- this is a
      # normal compilation that the losing compiler can handle.  If no
      # '.c' file was seen then we are probably linking.  That is also
      # ok.
      exec "$@"
    fi
    
    # Name of file we expect compiler to create.
    cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
    
    # Create the lock directory.
    # Note: use '[/\\:.-]' here to ensure that we don't use the same name
    # that we are using for the .o file.  Also, base the name on the expected
    # object file name, since that is what matters with a parallel build.
    lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
    while true; do
      if mkdir "$lockdir" >/dev/null 2>&1; then
        break
      fi
      sleep 1
    done
    # FIXME: race condition here if user kills between mkdir and trap.
    trap "rmdir '$lockdir'; exit 1" 1 2 15
    
    # Run the compile.
    "$@"
    ret=$?
    
    if test -f "$cofile"; then
      test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
    elif test -f "${cofile}bj"; then
      test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
    fi
    
    rmdir "$lockdir"
    exit $ret
    
    # Local Variables:
    # mode: shell-script
    # sh-indentation: 2
    # eval: (add-hook 'before-save-hook 'time-stamp)
    # time-stamp-start: "scriptversion="
    # time-stamp-format: "%:y-%02m-%02d.%02H"
    # time-stamp-time-zone: "UTC0"
    # time-stamp-end: "; # UTC"
    # End:
    ./ciwiki-3.0.4/COPYING000777 001750 001750 00000043110 11032514654 016556 0ustar00jpredonnetjpredonnet000000 000000 		    GNU GENERAL PUBLIC LICENSE
    		       Version 2, June 1991
    
     Copyright (C) 1989, 1991 Free Software Foundation, Inc.
         59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     Everyone is permitted to copy and distribute verbatim copies
     of this license document, but changing it is not allowed.
    
    			    Preamble
    
      The licenses for most software are designed to take away your
    freedom to share and change it.  By contrast, the GNU General Public
    License is intended to guarantee your freedom to share and change free
    software--to make sure the software is free for all its users.  This
    General Public License applies to most of the Free Software
    Foundation's software and to any other program whose authors commit to
    using it.  (Some other Free Software Foundation software is covered by
    the GNU Library General Public License instead.)  You can apply it to
    your programs, too.
    
      When we speak of free software, we are referring to freedom, not
    price.  Our General Public Licenses are designed to make sure that you
    have the freedom to distribute copies of free software (and charge for
    this service if you wish), that you receive source code or can get it
    if you want it, that you can change the software or use pieces of it
    in new free programs; and that you know you can do these things.
    
      To protect your rights, we need to make restrictions that forbid
    anyone to deny you these rights or to ask you to surrender the rights.
    These restrictions translate to certain responsibilities for you if you
    distribute copies of the software, or if you modify it.
    
      For example, if you distribute copies of such a program, whether
    gratis or for a fee, you must give the recipients all the rights that
    you have.  You must make sure that they, too, receive or can get the
    source code.  And you must show them these terms so they know their
    rights.
    
      We protect your rights with two steps: (1) copyright the software, and
    (2) offer you this license which gives you legal permission to copy,
    distribute and/or modify the software.
    
      Also, for each author's protection and ours, we want to make certain
    that everyone understands that there is no warranty for this free
    software.  If the software is modified by someone else and passed on, we
    want its recipients to know that what they have is not the original, so
    that any problems introduced by others will not reflect on the original
    authors' reputations.
    
      Finally, any free program is threatened constantly by software
    patents.  We wish to avoid the danger that redistributors of a free
    program will individually obtain patent licenses, in effect making the
    program proprietary.  To prevent this, we have made it clear that any
    patent must be licensed for everyone's free use or not licensed at all.
    
      The precise terms and conditions for copying, distribution and
    modification follow.
    
    		    GNU GENERAL PUBLIC LICENSE
       TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
    
      0. This License applies to any program or other work which contains
    a notice placed by the copyright holder saying it may be distributed
    under the terms of this General Public License.  The "Program", below,
    refers to any such program or work, and a "work based on the Program"
    means either the Program or any derivative work under copyright law:
    that is to say, a work containing the Program or a portion of it,
    either verbatim or with modifications and/or translated into another
    language.  (Hereinafter, translation is included without limitation in
    the term "modification".)  Each licensee is addressed as "you".
    
    Activities other than copying, distribution and modification are not
    covered by this License; they are outside its scope.  The act of
    running the Program is not restricted, and the output from the Program
    is covered only if its contents constitute a work based on the
    Program (independent of having been made by running the Program).
    Whether that is true depends on what the Program does.
    
      1. You may copy and distribute verbatim copies of the Program's
    source code as you receive it, in any medium, provided that you
    conspicuously and appropriately publish on each copy an appropriate
    copyright notice and disclaimer of warranty; keep intact all the
    notices that refer to this License and to the absence of any warranty;
    and give any other recipients of the Program a copy of this License
    along with the Program.
    
    You may charge a fee for the physical act of transferring a copy, and
    you may at your option offer warranty protection in exchange for a fee.
    
      2. You may modify your copy or copies of the Program or any portion
    of it, thus forming a work based on the Program, and copy and
    distribute such modifications or work under the terms of Section 1
    above, provided that you also meet all of these conditions:
    
        a) You must cause the modified files to carry prominent notices
        stating that you changed the files and the date of any change.
    
        b) You must cause any work that you distribute or publish, that in
        whole or in part contains or is derived from the Program or any
        part thereof, to be licensed as a whole at no charge to all third
        parties under the terms of this License.
    
        c) If the modified program normally reads commands interactively
        when run, you must cause it, when started running for such
        interactive use in the most ordinary way, to print or display an
        announcement including an appropriate copyright notice and a
        notice that there is no warranty (or else, saying that you provide
        a warranty) and that users may redistribute the program under
        these conditions, and telling the user how to view a copy of this
        License.  (Exception: if the Program itself is interactive but
        does not normally print such an announcement, your work based on
        the Program is not required to print an announcement.)
    
    These requirements apply to the modified work as a whole.  If
    identifiable sections of that work are not derived from the Program,
    and can be reasonably considered independent and separate works in
    themselves, then this License, and its terms, do not apply to those
    sections when you distribute them as separate works.  But when you
    distribute the same sections as part of a whole which is a work based
    on the Program, the distribution of the whole must be on the terms of
    this License, whose permissions for other licensees extend to the
    entire whole, and thus to each and every part regardless of who wrote it.
    
    Thus, it is not the intent of this section to claim rights or contest
    your rights to work written entirely by you; rather, the intent is to
    exercise the right to control the distribution of derivative or
    collective works based on the Program.
    
    In addition, mere aggregation of another work not based on the Program
    with the Program (or with a work based on the Program) on a volume of
    a storage or distribution medium does not bring the other work under
    the scope of this License.
    
      3. You may copy and distribute the Program (or a work based on it,
    under Section 2) in object code or executable form under the terms of
    Sections 1 and 2 above provided that you also do one of the following:
    
        a) Accompany it with the complete corresponding machine-readable
        source code, which must be distributed under the terms of Sections
        1 and 2 above on a medium customarily used for software interchange; or,
    
        b) Accompany it with a written offer, valid for at least three
        years, to give any third party, for a charge no more than your
        cost of physically performing source distribution, a complete
        machine-readable copy of the corresponding source code, to be
        distributed under the terms of Sections 1 and 2 above on a medium
        customarily used for software interchange; or,
    
        c) Accompany it with the information you received as to the offer
        to distribute corresponding source code.  (This alternative is
        allowed only for noncommercial distribution and only if you
        received the program in object code or executable form with such
        an offer, in accord with Subsection b above.)
    
    The source code for a work means the preferred form of the work for
    making modifications to it.  For an executable work, complete source
    code means all the source code for all modules it contains, plus any
    associated interface definition files, plus the scripts used to
    control compilation and installation of the executable.  However, as a
    special exception, the source code distributed need not include
    anything that is normally distributed (in either source or binary
    form) with the major components (compiler, kernel, and so on) of the
    operating system on which the executable runs, unless that component
    itself accompanies the executable.
    
    If distribution of executable or object code is made by offering
    access to copy from a designated place, then offering equivalent
    access to copy the source code from the same place counts as
    distribution of the source code, even though third parties are not
    compelled to copy the source along with the object code.
    
      4. You may not copy, modify, sublicense, or distribute the Program
    except as expressly provided under this License.  Any attempt
    otherwise to copy, modify, sublicense or distribute the Program is
    void, and will automatically terminate your rights under this License.
    However, parties who have received copies, or rights, from you under
    this License will not have their licenses terminated so long as such
    parties remain in full compliance.
    
      5. You are not required to accept this License, since you have not
    signed it.  However, nothing else grants you permission to modify or
    distribute the Program or its derivative works.  These actions are
    prohibited by law if you do not accept this License.  Therefore, by
    modifying or distributing the Program (or any work based on the
    Program), you indicate your acceptance of this License to do so, and
    all its terms and conditions for copying, distributing or modifying
    the Program or works based on it.
    
      6. Each time you redistribute the Program (or any work based on the
    Program), the recipient automatically receives a license from the
    original licensor to copy, distribute or modify the Program subject to
    these terms and conditions.  You may not impose any further
    restrictions on the recipients' exercise of the rights granted herein.
    You are not responsible for enforcing compliance by third parties to
    this License.
    
      7. If, as a consequence of a court judgment or allegation of patent
    infringement or for any other reason (not limited to patent issues),
    conditions are imposed on you (whether by court order, agreement or
    otherwise) that contradict the conditions of this License, they do not
    excuse you from the conditions of this License.  If you cannot
    distribute so as to satisfy simultaneously your obligations under this
    License and any other pertinent obligations, then as a consequence you
    may not distribute the Program at all.  For example, if a patent
    license would not permit royalty-free redistribution of the Program by
    all those who receive copies directly or indirectly through you, then
    the only way you could satisfy both it and this License would be to
    refrain entirely from distribution of the Program.
    
    If any portion of this section is held invalid or unenforceable under
    any particular circumstance, the balance of the section is intended to
    apply and the section as a whole is intended to apply in other
    circumstances.
    
    It is not the purpose of this section to induce you to infringe any
    patents or other property right claims or to contest validity of any
    such claims; this section has the sole purpose of protecting the
    integrity of the free software distribution system, which is
    implemented by public license practices.  Many people have made
    generous contributions to the wide range of software distributed
    through that system in reliance on consistent application of that
    system; it is up to the author/donor to decide if he or she is willing
    to distribute software through any other system and a licensee cannot
    impose that choice.
    
    This section is intended to make thoroughly clear what is believed to
    be a consequence of the rest of this License.
    
      8. If the distribution and/or use of the Program is restricted in
    certain countries either by patents or by copyrighted interfaces, the
    original copyright holder who places the Program under this License
    may add an explicit geographical distribution limitation excluding
    those countries, so that distribution is permitted only in or among
    countries not thus excluded.  In such case, this License incorporates
    the limitation as if written in the body of this License.
    
      9. The Free Software Foundation may publish revised and/or new versions
    of the General Public License from time to time.  Such new versions will
    be similar in spirit to the present version, but may differ in detail to
    address new problems or concerns.
    
    Each version is given a distinguishing version number.  If the Program
    specifies a version number of this License which applies to it and "any
    later version", you have the option of following the terms and conditions
    either of that version or of any later version published by the Free
    Software Foundation.  If the Program does not specify a version number of
    this License, you may choose any version ever published by the Free Software
    Foundation.
    
      10. If you wish to incorporate parts of the Program into other free
    programs whose distribution conditions are different, write to the author
    to ask for permission.  For software which is copyrighted by the Free
    Software Foundation, write to the Free Software Foundation; we sometimes
    make exceptions for this.  Our decision will be guided by the two goals
    of preserving the free status of all derivatives of our free software and
    of promoting the sharing and reuse of software generally.
    
    			    NO WARRANTY
    
      11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
    FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
    OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
    PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
    OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
    TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
    PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
    REPAIR OR CORRECTION.
    
      12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
    WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
    REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
    INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
    OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
    TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
    YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
    PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
    POSSIBILITY OF SUCH DAMAGES.
    
    		     END OF TERMS AND CONDITIONS
    
    	    How to Apply These Terms to Your New Programs
    
      If you develop a new program, and you want it to be of the greatest
    possible use to the public, the best way to achieve this is to make it
    free software which everyone can redistribute and change under these terms.
    
      To do so, attach the following notices to the program.  It is safest
    to attach them to the start of each source file to most effectively
    convey the exclusion of warranty; and each file should have at least
    the "copyright" line and a pointer to where the full notice is found.
    
        
        Copyright (C)   
    
        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation; either version 2 of the License, or
        (at your option) any later version.
    
        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.
    
        You should have received a copy of the GNU General Public License
        along with this program; if not, write to the Free Software
        Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    
    
    Also add information on how to contact you by electronic and paper mail.
    
    If the program is interactive, make it output a short notice like this
    when it starts in an interactive mode:
    
        Gnomovision version 69, Copyright (C) year  name of author
        Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
        This is free software, and you are welcome to redistribute it
        under certain conditions; type `show c' for details.
    
    The hypothetical commands `show w' and `show c' should show the appropriate
    parts of the General Public License.  Of course, the commands you use may
    be called something other than `show w' and `show c'; they could even be
    mouse-clicks or menu items--whatever suits your program.
    
    You should also get your employer (if you work as a programmer) or your
    school, if any, to sign a "copyright disclaimer" for the program, if
    necessary.  Here is a sample; alter the names:
    
      Yoyodyne, Inc., hereby disclaims all copyright interest in the program
      `Gnomovision' (which makes passes at compilers) written by James Hacker.
    
      , 1 April 1989
      Ty Coon, President of Vice
    
    This General Public License does not permit incorporating your program into
    proprietary programs.  If your program is a subroutine library, you may
    consider it more useful to permit linking proprietary applications with the
    library.  If this is what you want to do, use the GNU Library General
    Public License instead of this License.
    ./ciwiki-3.0.4/configure.ac000777 001750 001750 00000001533 14274543520 020021 0ustar00jpredonnetjpredonnet000000 000000 AC_PREREQ(2.59)
    AC_INIT(ciwiki, 3.0.4, [inphilly@gmail.com])
    AC_CONFIG_SRCDIR([src/util.c])
    AM_CONFIG_HEADER(config.h)
    
    AM_INIT_AUTOMAKE()
    
    # Checks for programs.
    AC_PROG_CC
    
    # Checks for libraries.
    
    # Checks for header files.
    AC_HEADER_DIRENT
    AC_HEADER_STDC
    AC_HEADER_SYS_WAIT
    AC_CHECK_HEADERS([arpa/inet.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h])
    
    # Checks for typedefs, structures, and compiler characteristics.
    AC_C_CONST
    AC_HEADER_TIME
    AC_STRUCT_TM
    
    # Checks for library functions.
    AC_FUNC_ALLOCA
    AC_FUNC_FORK
    AC_FUNC_SELECT_ARGTYPES
    AC_FUNC_STAT
    AC_FUNC_STRFTIME
    AC_CHECK_FUNCS([asprintf inet_ntoa memset mkdir putenv select socket strdup strncasecmp])
    
    if test "x$GCC" = "xyes"; then
            GCC_FLAGS="-g -Wall -fno-strict-aliasing"
    fi
    
    AC_SUBST(GCC_FLAGS)
    
    AC_OUTPUT([
    Makefile
    src/Makefile
    scripts/Makefile
    docs/Makefile
    ])
    ./ciwiki-3.0.4/aclocal.m4000664 001750 001750 00000123621 14274673771 017405 0ustar00jpredonnetjpredonnet000000 000000 # generated automatically by aclocal 1.16.1 -*- Autoconf -*-
    
    # Copyright (C) 1996-2018 Free Software Foundation, Inc.
    
    # This file is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
    
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
    # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    # PARTICULAR PURPOSE.
    
    m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
    m4_ifndef([AC_AUTOCONF_VERSION],
      [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
    m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
    [m4_warning([this file was generated for autoconf 2.69.
    You have another version of autoconf.  It may work, but is not guaranteed to.
    If you have problems, you may need to regenerate the build system entirely.
    To do so, use the procedure documented by the package, typically 'autoreconf'.])])
    
    # Copyright (C) 2002-2018 Free Software Foundation, Inc.
    #
    # This file is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
    
    # AM_AUTOMAKE_VERSION(VERSION)
    # ----------------------------
    # Automake X.Y traces this macro to ensure aclocal.m4 has been
    # generated from the m4 files accompanying Automake X.Y.
    # (This private macro should not be called outside this file.)
    AC_DEFUN([AM_AUTOMAKE_VERSION],
    [am__api_version='1.16'
    dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
    dnl require some minimum version.  Point them to the right macro.
    m4_if([$1], [1.16.1], [],
          [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
    ])
    
    # _AM_AUTOCONF_VERSION(VERSION)
    # -----------------------------
    # aclocal traces this macro to find the Autoconf version.
    # This is a private macro too.  Using m4_define simplifies
    # the logic in aclocal, which can simply ignore this definition.
    m4_define([_AM_AUTOCONF_VERSION], [])
    
    # AM_SET_CURRENT_AUTOMAKE_VERSION
    # -------------------------------
    # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
    # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
    AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
    [AM_AUTOMAKE_VERSION([1.16.1])dnl
    m4_ifndef([AC_AUTOCONF_VERSION],
      [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
    _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
    
    # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
    
    # Copyright (C) 2001-2018 Free Software Foundation, Inc.
    #
    # This file is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
    
    # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
    # $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
    # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
    #
    # Of course, Automake must honor this variable whenever it calls a
    # tool from the auxiliary directory.  The problem is that $srcdir (and
    # therefore $ac_aux_dir as well) can be either absolute or relative,
    # depending on how configure is run.  This is pretty annoying, since
    # it makes $ac_aux_dir quite unusable in subdirectories: in the top
    # source directory, any form will work fine, but in subdirectories a
    # relative path needs to be adjusted first.
    #
    # $ac_aux_dir/missing
    #    fails when called from a subdirectory if $ac_aux_dir is relative
    # $top_srcdir/$ac_aux_dir/missing
    #    fails if $ac_aux_dir is absolute,
    #    fails when called from a subdirectory in a VPATH build with
    #          a relative $ac_aux_dir
    #
    # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
    # are both prefixed by $srcdir.  In an in-source build this is usually
    # harmless because $srcdir is '.', but things will broke when you
    # start a VPATH build or use an absolute $srcdir.
    #
    # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
    # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
    #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
    # and then we would define $MISSING as
    #   MISSING="\${SHELL} $am_aux_dir/missing"
    # This will work as long as MISSING is not called from configure, because
    # unfortunately $(top_srcdir) has no meaning in configure.
    # However there are other variables, like CC, which are often used in
    # configure, and could therefore not use this "fixed" $ac_aux_dir.
    #
    # Another solution, used here, is to always expand $ac_aux_dir to an
    # absolute PATH.  The drawback is that using absolute paths prevent a
    # configured tree to be moved without reconfiguration.
    
    AC_DEFUN([AM_AUX_DIR_EXPAND],
    [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
    # Expand $ac_aux_dir to an absolute path.
    am_aux_dir=`cd "$ac_aux_dir" && pwd`
    ])
    
    # AM_CONDITIONAL                                            -*- Autoconf -*-
    
    # Copyright (C) 1997-2018 Free Software Foundation, Inc.
    #
    # This file is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
    
    # AM_CONDITIONAL(NAME, SHELL-CONDITION)
    # -------------------------------------
    # Define a conditional.
    AC_DEFUN([AM_CONDITIONAL],
    [AC_PREREQ([2.52])dnl
     m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
           [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
    AC_SUBST([$1_TRUE])dnl
    AC_SUBST([$1_FALSE])dnl
    _AM_SUBST_NOTMAKE([$1_TRUE])dnl
    _AM_SUBST_NOTMAKE([$1_FALSE])dnl
    m4_define([_AM_COND_VALUE_$1], [$2])dnl
    if $2; then
      $1_TRUE=
      $1_FALSE='#'
    else
      $1_TRUE='#'
      $1_FALSE=
    fi
    AC_CONFIG_COMMANDS_PRE(
    [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
      AC_MSG_ERROR([[conditional "$1" was never defined.
    Usually this means the macro was only invoked conditionally.]])
    fi])])
    
    # Copyright (C) 1999-2018 Free Software Foundation, Inc.
    #
    # This file is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
    
    
    # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
    # written in clear, in which case automake, when reading aclocal.m4,
    # will think it sees a *use*, and therefore will trigger all it's
    # C support machinery.  Also note that it means that autoscan, seeing
    # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
    
    
    # _AM_DEPENDENCIES(NAME)
    # ----------------------
    # See how the compiler implements dependency checking.
    # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
    # We try a few techniques and use that to set a single cache variable.
    #
    # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
    # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
    # dependency, and given that the user is not expected to run this macro,
    # just rely on AC_PROG_CC.
    AC_DEFUN([_AM_DEPENDENCIES],
    [AC_REQUIRE([AM_SET_DEPDIR])dnl
    AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
    AC_REQUIRE([AM_MAKE_INCLUDE])dnl
    AC_REQUIRE([AM_DEP_TRACK])dnl
    
    m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
          [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
          [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
          [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
          [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
          [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
                        [depcc="$$1"   am_compiler_list=])
    
    AC_CACHE_CHECK([dependency style of $depcc],
                   [am_cv_$1_dependencies_compiler_type],
    [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
      # We make a subdir and do the tests there.  Otherwise we can end up
      # making bogus files that we don't know about and never remove.  For
      # instance it was reported that on HP-UX the gcc test will end up
      # making a dummy file named 'D' -- because '-MD' means "put the output
      # in D".
      rm -rf conftest.dir
      mkdir conftest.dir
      # Copy depcomp to subdir because otherwise we won't find it if we're
      # using a relative directory.
      cp "$am_depcomp" conftest.dir
      cd conftest.dir
      # We will build objects and dependencies in a subdirectory because
      # it helps to detect inapplicable dependency modes.  For instance
      # both Tru64's cc and ICC support -MD to output dependencies as a
      # side effect of compilation, but ICC will put the dependencies in
      # the current directory while Tru64 will put them in the object
      # directory.
      mkdir sub
    
      am_cv_$1_dependencies_compiler_type=none
      if test "$am_compiler_list" = ""; then
         am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
      fi
      am__universal=false
      m4_case([$1], [CC],
        [case " $depcc " in #(
         *\ -arch\ *\ -arch\ *) am__universal=true ;;
         esac],
        [CXX],
        [case " $depcc " in #(
         *\ -arch\ *\ -arch\ *) am__universal=true ;;
         esac])
    
      for depmode in $am_compiler_list; do
        # Setup a source with many dependencies, because some compilers
        # like to wrap large dependency lists on column 80 (with \), and
        # we should not choose a depcomp mode which is confused by this.
        #
        # We need to recreate these files for each test, as the compiler may
        # overwrite some of them when testing with obscure command lines.
        # This happens at least with the AIX C compiler.
        : > sub/conftest.c
        for i in 1 2 3 4 5 6; do
          echo '#include "conftst'$i'.h"' >> sub/conftest.c
          # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
          # Solaris 10 /bin/sh.
          echo '/* dummy */' > sub/conftst$i.h
        done
        echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
    
        # We check with '-c' and '-o' for the sake of the "dashmstdout"
        # mode.  It turns out that the SunPro C++ compiler does not properly
        # handle '-M -o', and we need to detect this.  Also, some Intel
        # versions had trouble with output in subdirs.
        am__obj=sub/conftest.${OBJEXT-o}
        am__minus_obj="-o $am__obj"
        case $depmode in
        gcc)
          # This depmode causes a compiler race in universal mode.
          test "$am__universal" = false || continue
          ;;
        nosideeffect)
          # After this tag, mechanisms are not by side-effect, so they'll
          # only be used when explicitly requested.
          if test "x$enable_dependency_tracking" = xyes; then
    	continue
          else
    	break
          fi
          ;;
        msvc7 | msvc7msys | msvisualcpp | msvcmsys)
          # This compiler won't grok '-c -o', but also, the minuso test has
          # not run yet.  These depmodes are late enough in the game, and
          # so weak that their functioning should not be impacted.
          am__obj=conftest.${OBJEXT-o}
          am__minus_obj=
          ;;
        none) break ;;
        esac
        if depmode=$depmode \
           source=sub/conftest.c object=$am__obj \
           depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
           $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
             >/dev/null 2>conftest.err &&
           grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
           grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
           grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
           ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
          # icc doesn't choke on unknown options, it will just issue warnings
          # or remarks (even with -Werror).  So we grep stderr for any message
          # that says an option was ignored or not supported.
          # When given -MP, icc 7.0 and 7.1 complain thusly:
          #   icc: Command line warning: ignoring option '-M'; no argument required
          # The diagnosis changed in icc 8.0:
          #   icc: Command line remark: option '-MP' not supported
          if (grep 'ignoring option' conftest.err ||
              grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
            am_cv_$1_dependencies_compiler_type=$depmode
            break
          fi
        fi
      done
    
      cd ..
      rm -rf conftest.dir
    else
      am_cv_$1_dependencies_compiler_type=none
    fi
    ])
    AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
    AM_CONDITIONAL([am__fastdep$1], [
      test "x$enable_dependency_tracking" != xno \
      && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
    ])
    
    
    # AM_SET_DEPDIR
    # -------------
    # Choose a directory name for dependency files.
    # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
    AC_DEFUN([AM_SET_DEPDIR],
    [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
    AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
    ])
    
    
    # AM_DEP_TRACK
    # ------------
    AC_DEFUN([AM_DEP_TRACK],
    [AC_ARG_ENABLE([dependency-tracking], [dnl
    AS_HELP_STRING(
      [--enable-dependency-tracking],
      [do not reject slow dependency extractors])
    AS_HELP_STRING(
      [--disable-dependency-tracking],
      [speeds up one-time build])])
    if test "x$enable_dependency_tracking" != xno; then
      am_depcomp="$ac_aux_dir/depcomp"
      AMDEPBACKSLASH='\'
      am__nodep='_no'
    fi
    AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
    AC_SUBST([AMDEPBACKSLASH])dnl
    _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
    AC_SUBST([am__nodep])dnl
    _AM_SUBST_NOTMAKE([am__nodep])dnl
    ])
    
    # Generate code to set up dependency tracking.              -*- Autoconf -*-
    
    # Copyright (C) 1999-2018 Free Software Foundation, Inc.
    #
    # This file is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
    
    # _AM_OUTPUT_DEPENDENCY_COMMANDS
    # ------------------------------
    AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
    [{
      # Older Autoconf quotes --file arguments for eval, but not when files
      # are listed without --file.  Let's play safe and only enable the eval
      # if we detect the quoting.
      # TODO: see whether this extra hack can be removed once we start
      # requiring Autoconf 2.70 or later.
      AS_CASE([$CONFIG_FILES],
              [*\'*], [eval set x "$CONFIG_FILES"],
              [*], [set x $CONFIG_FILES])
      shift
      # Used to flag and report bootstrapping failures.
      am_rc=0
      for am_mf
      do
        # Strip MF so we end up with the name of the file.
        am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
        # Check whether this is an Automake generated Makefile which includes
        # dependency-tracking related rules and includes.
        # Grep'ing the whole file directly is not great: AIX grep has a line
        # limit of 2048, but all sed's we know have understand at least 4000.
        sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
          || continue
        am_dirpart=`AS_DIRNAME(["$am_mf"])`
        am_filepart=`AS_BASENAME(["$am_mf"])`
        AM_RUN_LOG([cd "$am_dirpart" \
          && sed -e '/# am--include-marker/d' "$am_filepart" \
            | $MAKE -f - am--depfiles]) || am_rc=$?
      done
      if test $am_rc -ne 0; then
        AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
        for automatic dependency tracking.  Try re-running configure with the
        '--disable-dependency-tracking' option to at least be able to build
        the package (albeit without support for automatic dependency tracking).])
      fi
      AS_UNSET([am_dirpart])
      AS_UNSET([am_filepart])
      AS_UNSET([am_mf])
      AS_UNSET([am_rc])
      rm -f conftest-deps.mk
    }
    ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
    
    
    # AM_OUTPUT_DEPENDENCY_COMMANDS
    # -----------------------------
    # This macro should only be invoked once -- use via AC_REQUIRE.
    #
    # This code is only required when automatic dependency tracking is enabled.
    # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
    # order to bootstrap the dependency handling code.
    AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
    [AC_CONFIG_COMMANDS([depfiles],
         [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
         [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
    
    # Do all the work for Automake.                             -*- Autoconf -*-
    
    # Copyright (C) 1996-2018 Free Software Foundation, Inc.
    #
    # This file is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
    
    # This macro actually does too much.  Some checks are only needed if
    # your package does certain things.  But this isn't really a big deal.
    
    dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
    m4_define([AC_PROG_CC],
    m4_defn([AC_PROG_CC])
    [_AM_PROG_CC_C_O
    ])
    
    # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
    # AM_INIT_AUTOMAKE([OPTIONS])
    # -----------------------------------------------
    # The call with PACKAGE and VERSION arguments is the old style
    # call (pre autoconf-2.50), which is being phased out.  PACKAGE
    # and VERSION should now be passed to AC_INIT and removed from
    # the call to AM_INIT_AUTOMAKE.
    # We support both call styles for the transition.  After
    # the next Automake release, Autoconf can make the AC_INIT
    # arguments mandatory, and then we can depend on a new Autoconf
    # release and drop the old call support.
    AC_DEFUN([AM_INIT_AUTOMAKE],
    [AC_PREREQ([2.65])dnl
    dnl Autoconf wants to disallow AM_ names.  We explicitly allow
    dnl the ones we care about.
    m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
    AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
    AC_REQUIRE([AC_PROG_INSTALL])dnl
    if test "`cd $srcdir && pwd`" != "`pwd`"; then
      # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
      # is not polluted with repeated "-I."
      AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
      # test to see if srcdir already configured
      if test -f $srcdir/config.status; then
        AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
      fi
    fi
    
    # test whether we have cygpath
    if test -z "$CYGPATH_W"; then
      if (cygpath --version) >/dev/null 2>/dev/null; then
        CYGPATH_W='cygpath -w'
      else
        CYGPATH_W=echo
      fi
    fi
    AC_SUBST([CYGPATH_W])
    
    # Define the identity of the package.
    dnl Distinguish between old-style and new-style calls.
    m4_ifval([$2],
    [AC_DIAGNOSE([obsolete],
                 [$0: two- and three-arguments forms are deprecated.])
    m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
     AC_SUBST([PACKAGE], [$1])dnl
     AC_SUBST([VERSION], [$2])],
    [_AM_SET_OPTIONS([$1])dnl
    dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
    m4_if(
      m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
      [ok:ok],,
      [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
     AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
     AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
    
    _AM_IF_OPTION([no-define],,
    [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
     AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
    
    # Some tools Automake needs.
    AC_REQUIRE([AM_SANITY_CHECK])dnl
    AC_REQUIRE([AC_ARG_PROGRAM])dnl
    AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
    AM_MISSING_PROG([AUTOCONF], [autoconf])
    AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
    AM_MISSING_PROG([AUTOHEADER], [autoheader])
    AM_MISSING_PROG([MAKEINFO], [makeinfo])
    AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
    AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
    AC_REQUIRE([AC_PROG_MKDIR_P])dnl
    # For better backward compatibility.  To be removed once Automake 1.9.x
    # dies out for good.  For more background, see:
    # 
    # 
    AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
    # We need awk for the "check" target (and possibly the TAP driver).  The
    # system "awk" is bad on some platforms.
    AC_REQUIRE([AC_PROG_AWK])dnl
    AC_REQUIRE([AC_PROG_MAKE_SET])dnl
    AC_REQUIRE([AM_SET_LEADING_DOT])dnl
    _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
    	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
    			     [_AM_PROG_TAR([v7])])])
    _AM_IF_OPTION([no-dependencies],,
    [AC_PROVIDE_IFELSE([AC_PROG_CC],
    		  [_AM_DEPENDENCIES([CC])],
    		  [m4_define([AC_PROG_CC],
    			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
    AC_PROVIDE_IFELSE([AC_PROG_CXX],
    		  [_AM_DEPENDENCIES([CXX])],
    		  [m4_define([AC_PROG_CXX],
    			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
    AC_PROVIDE_IFELSE([AC_PROG_OBJC],
    		  [_AM_DEPENDENCIES([OBJC])],
    		  [m4_define([AC_PROG_OBJC],
    			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
    AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
    		  [_AM_DEPENDENCIES([OBJCXX])],
    		  [m4_define([AC_PROG_OBJCXX],
    			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
    ])
    AC_REQUIRE([AM_SILENT_RULES])dnl
    dnl The testsuite driver may need to know about EXEEXT, so add the
    dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
    dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
    AC_CONFIG_COMMANDS_PRE(dnl
    [m4_provide_if([_AM_COMPILER_EXEEXT],
      [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
    
    # POSIX will say in a future version that running "rm -f" with no argument
    # is OK; and we want to be able to make that assumption in our Makefile
    # recipes.  So use an aggressive probe to check that the usage we want is
    # actually supported "in the wild" to an acceptable degree.
    # See automake bug#10828.
    # To make any issue more visible, cause the running configure to be aborted
    # by default if the 'rm' program in use doesn't match our expectations; the
    # user can still override this though.
    if rm -f && rm -fr && rm -rf; then : OK; else
      cat >&2 <<'END'
    Oops!
    
    Your 'rm' program seems unable to run without file operands specified
    on the command line, even when the '-f' option is present.  This is contrary
    to the behaviour of most rm programs out there, and not conforming with
    the upcoming POSIX standard: 
    
    Please tell bug-automake@gnu.org about your system, including the value
    of your $PATH and any error possibly output before this message.  This
    can help us improve future automake versions.
    
    END
      if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
        echo 'Configuration will proceed anyway, since you have set the' >&2
        echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
        echo >&2
      else
        cat >&2 <<'END'
    Aborting the configuration process, to ensure you take notice of the issue.
    
    You can download and install GNU coreutils to get an 'rm' implementation
    that behaves properly: .
    
    If you want to complete the configuration process using your problematic
    'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
    to "yes", and re-run configure.
    
    END
        AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
      fi
    fi
    dnl The trailing newline in this macro's definition is deliberate, for
    dnl backward compatibility and to allow trailing 'dnl'-style comments
    dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
    ])
    
    dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
    dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
    dnl mangled by Autoconf and run in a shell conditional statement.
    m4_define([_AC_COMPILER_EXEEXT],
    m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
    
    # When config.status generates a header, we must update the stamp-h file.
    # This file resides in the same directory as the config header
    # that is generated.  The stamp files are numbered to have different names.
    
    # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
    # loop where config.status creates the headers, so we can generate
    # our stamp files there.
    AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
    [# Compute $1's index in $config_headers.
    _am_arg=$1
    _am_stamp_count=1
    for _am_header in $config_headers :; do
      case $_am_header in
        $_am_arg | $_am_arg:* )
          break ;;
        * )
          _am_stamp_count=`expr $_am_stamp_count + 1` ;;
      esac
    done
    echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
    
    # Copyright (C) 2001-2018 Free Software Foundation, Inc.
    #
    # This file is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
    
    # AM_PROG_INSTALL_SH
    # ------------------
    # Define $install_sh.
    AC_DEFUN([AM_PROG_INSTALL_SH],
    [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
    if test x"${install_sh+set}" != xset; then
      case $am_aux_dir in
      *\ * | *\	*)
        install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
      *)
        install_sh="\${SHELL} $am_aux_dir/install-sh"
      esac
    fi
    AC_SUBST([install_sh])])
    
    # Copyright (C) 2003-2018 Free Software Foundation, Inc.
    #
    # This file is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
    
    # Check whether the underlying file-system supports filenames
    # with a leading dot.  For instance MS-DOS doesn't.
    AC_DEFUN([AM_SET_LEADING_DOT],
    [rm -rf .tst 2>/dev/null
    mkdir .tst 2>/dev/null
    if test -d .tst; then
      am__leading_dot=.
    else
      am__leading_dot=_
    fi
    rmdir .tst 2>/dev/null
    AC_SUBST([am__leading_dot])])
    
    # Check to see how 'make' treats includes.	            -*- Autoconf -*-
    
    # Copyright (C) 2001-2018 Free Software Foundation, Inc.
    #
    # This file is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
    
    # AM_MAKE_INCLUDE()
    # -----------------
    # Check whether make has an 'include' directive that can support all
    # the idioms we need for our automatic dependency tracking code.
    AC_DEFUN([AM_MAKE_INCLUDE],
    [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
    cat > confinc.mk << 'END'
    am__doit:
    	@echo this is the am__doit target >confinc.out
    .PHONY: am__doit
    END
    am__include="#"
    am__quote=
    # BSD make does it like this.
    echo '.include "confinc.mk" # ignored' > confmf.BSD
    # Other make implementations (GNU, Solaris 10, AIX) do it like this.
    echo 'include confinc.mk # ignored' > confmf.GNU
    _am_result=no
    for s in GNU BSD; do
      AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
      AS_CASE([$?:`cat confinc.out 2>/dev/null`],
          ['0:this is the am__doit target'],
          [AS_CASE([$s],
              [BSD], [am__include='.include' am__quote='"'],
              [am__include='include' am__quote=''])])
      if test "$am__include" != "#"; then
        _am_result="yes ($s style)"
        break
      fi
    done
    rm -f confinc.* confmf.*
    AC_MSG_RESULT([${_am_result}])
    AC_SUBST([am__include])])
    AC_SUBST([am__quote])])
    
    # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
    
    # Copyright (C) 1997-2018 Free Software Foundation, Inc.
    #
    # This file is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
    
    # AM_MISSING_PROG(NAME, PROGRAM)
    # ------------------------------
    AC_DEFUN([AM_MISSING_PROG],
    [AC_REQUIRE([AM_MISSING_HAS_RUN])
    $1=${$1-"${am_missing_run}$2"}
    AC_SUBST($1)])
    
    # AM_MISSING_HAS_RUN
    # ------------------
    # Define MISSING if not defined so far and test if it is modern enough.
    # If it is, set am_missing_run to use it, otherwise, to nothing.
    AC_DEFUN([AM_MISSING_HAS_RUN],
    [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
    AC_REQUIRE_AUX_FILE([missing])dnl
    if test x"${MISSING+set}" != xset; then
      case $am_aux_dir in
      *\ * | *\	*)
        MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
      *)
        MISSING="\${SHELL} $am_aux_dir/missing" ;;
      esac
    fi
    # Use eval to expand $SHELL
    if eval "$MISSING --is-lightweight"; then
      am_missing_run="$MISSING "
    else
      am_missing_run=
      AC_MSG_WARN(['missing' script is too old or missing])
    fi
    ])
    
    #  -*- Autoconf -*-
    # Obsolete and "removed" macros, that must however still report explicit
    # error messages when used, to smooth transition.
    #
    # Copyright (C) 1996-2018 Free Software Foundation, Inc.
    #
    # This file is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
    
    AC_DEFUN([AM_CONFIG_HEADER],
    [AC_DIAGNOSE([obsolete],
    ['$0': this macro is obsolete.
    You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl
    AC_CONFIG_HEADERS($@)])
    
    AC_DEFUN([AM_PROG_CC_STDC],
    [AC_PROG_CC
    am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
    AC_DIAGNOSE([obsolete],
    ['$0': this macro is obsolete.
    You should simply use the 'AC][_PROG_CC' macro instead.
    Also, your code should no longer depend upon 'am_cv_prog_cc_stdc',
    but upon 'ac_cv_prog_cc_stdc'.])])
    
    AC_DEFUN([AM_C_PROTOTYPES],
             [AC_FATAL([automatic de-ANSI-fication support has been removed])])
    AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
    
    # Helper functions for option handling.                     -*- Autoconf -*-
    
    # Copyright (C) 2001-2018 Free Software Foundation, Inc.
    #
    # This file is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
    
    # _AM_MANGLE_OPTION(NAME)
    # -----------------------
    AC_DEFUN([_AM_MANGLE_OPTION],
    [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
    
    # _AM_SET_OPTION(NAME)
    # --------------------
    # Set option NAME.  Presently that only means defining a flag for this option.
    AC_DEFUN([_AM_SET_OPTION],
    [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
    
    # _AM_SET_OPTIONS(OPTIONS)
    # ------------------------
    # OPTIONS is a space-separated list of Automake options.
    AC_DEFUN([_AM_SET_OPTIONS],
    [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
    
    # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
    # -------------------------------------------
    # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
    AC_DEFUN([_AM_IF_OPTION],
    [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
    
    # Copyright (C) 1999-2018 Free Software Foundation, Inc.
    #
    # This file is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
    
    # _AM_PROG_CC_C_O
    # ---------------
    # Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
    # to automatically call this.
    AC_DEFUN([_AM_PROG_CC_C_O],
    [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
    AC_REQUIRE_AUX_FILE([compile])dnl
    AC_LANG_PUSH([C])dnl
    AC_CACHE_CHECK(
      [whether $CC understands -c and -o together],
      [am_cv_prog_cc_c_o],
      [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
      # Make sure it works both with $CC and with simple cc.
      # Following AC_PROG_CC_C_O, we do the test twice because some
      # compilers refuse to overwrite an existing .o file with -o,
      # though they will create one.
      am_cv_prog_cc_c_o=yes
      for am_i in 1 2; do
        if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
             && test -f conftest2.$ac_objext; then
          : OK
        else
          am_cv_prog_cc_c_o=no
          break
        fi
      done
      rm -f core conftest*
      unset am_i])
    if test "$am_cv_prog_cc_c_o" != yes; then
       # Losing compiler, so override with the script.
       # FIXME: It is wrong to rewrite CC.
       # But if we don't then we get into trouble of one sort or another.
       # A longer-term fix would be to have automake use am__CC in this case,
       # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
       CC="$am_aux_dir/compile $CC"
    fi
    AC_LANG_POP([C])])
    
    # For backward compatibility.
    AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
    
    # Copyright (C) 2001-2018 Free Software Foundation, Inc.
    #
    # This file is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
    
    # AM_RUN_LOG(COMMAND)
    # -------------------
    # Run COMMAND, save the exit status in ac_status, and log it.
    # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
    AC_DEFUN([AM_RUN_LOG],
    [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
       ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
       ac_status=$?
       echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
       (exit $ac_status); }])
    
    # Check to make sure that the build environment is sane.    -*- Autoconf -*-
    
    # Copyright (C) 1996-2018 Free Software Foundation, Inc.
    #
    # This file is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
    
    # AM_SANITY_CHECK
    # ---------------
    AC_DEFUN([AM_SANITY_CHECK],
    [AC_MSG_CHECKING([whether build environment is sane])
    # Reject unsafe characters in $srcdir or the absolute working directory
    # name.  Accept space and tab only in the latter.
    am_lf='
    '
    case `pwd` in
      *[[\\\"\#\$\&\'\`$am_lf]]*)
        AC_MSG_ERROR([unsafe absolute working directory name]);;
    esac
    case $srcdir in
      *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
        AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
    esac
    
    # Do 'set' in a subshell so we don't clobber the current shell's
    # arguments.  Must try -L first in case configure is actually a
    # symlink; some systems play weird games with the mod time of symlinks
    # (eg FreeBSD returns the mod time of the symlink's containing
    # directory).
    if (
       am_has_slept=no
       for am_try in 1 2; do
         echo "timestamp, slept: $am_has_slept" > conftest.file
         set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
         if test "$[*]" = "X"; then
    	# -L didn't work.
    	set X `ls -t "$srcdir/configure" conftest.file`
         fi
         if test "$[*]" != "X $srcdir/configure conftest.file" \
    	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
    
    	# If neither matched, then we have a broken ls.  This can happen
    	# if, for instance, CONFIG_SHELL is bash and it inherits a
    	# broken ls alias from the environment.  This has actually
    	# happened.  Such a system could not be considered "sane".
    	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
      alias in your environment])
         fi
         if test "$[2]" = conftest.file || test $am_try -eq 2; then
           break
         fi
         # Just in case.
         sleep 1
         am_has_slept=yes
       done
       test "$[2]" = conftest.file
       )
    then
       # Ok.
       :
    else
       AC_MSG_ERROR([newly created file is older than distributed files!
    Check your system clock])
    fi
    AC_MSG_RESULT([yes])
    # If we didn't sleep, we still need to ensure time stamps of config.status and
    # generated files are strictly newer.
    am_sleep_pid=
    if grep 'slept: no' conftest.file >/dev/null 2>&1; then
      ( sleep 1 ) &
      am_sleep_pid=$!
    fi
    AC_CONFIG_COMMANDS_PRE(
      [AC_MSG_CHECKING([that generated files are newer than configure])
       if test -n "$am_sleep_pid"; then
         # Hide warnings about reused PIDs.
         wait $am_sleep_pid 2>/dev/null
       fi
       AC_MSG_RESULT([done])])
    rm -f conftest.file
    ])
    
    # Copyright (C) 2009-2018 Free Software Foundation, Inc.
    #
    # This file is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
    
    # AM_SILENT_RULES([DEFAULT])
    # --------------------------
    # Enable less verbose build rules; with the default set to DEFAULT
    # ("yes" being less verbose, "no" or empty being verbose).
    AC_DEFUN([AM_SILENT_RULES],
    [AC_ARG_ENABLE([silent-rules], [dnl
    AS_HELP_STRING(
      [--enable-silent-rules],
      [less verbose build output (undo: "make V=1")])
    AS_HELP_STRING(
      [--disable-silent-rules],
      [verbose build output (undo: "make V=0")])dnl
    ])
    case $enable_silent_rules in @%:@ (((
      yes) AM_DEFAULT_VERBOSITY=0;;
       no) AM_DEFAULT_VERBOSITY=1;;
        *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
    esac
    dnl
    dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
    dnl do not support nested variable expansions.
    dnl See automake bug#9928 and bug#10237.
    am_make=${MAKE-make}
    AC_CACHE_CHECK([whether $am_make supports nested variables],
       [am_cv_make_support_nested_variables],
       [if AS_ECHO([['TRUE=$(BAR$(V))
    BAR0=false
    BAR1=true
    V=1
    am__doit:
    	@$(TRUE)
    .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
      am_cv_make_support_nested_variables=yes
    else
      am_cv_make_support_nested_variables=no
    fi])
    if test $am_cv_make_support_nested_variables = yes; then
      dnl Using '$V' instead of '$(V)' breaks IRIX make.
      AM_V='$(V)'
      AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
    else
      AM_V=$AM_DEFAULT_VERBOSITY
      AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
    fi
    AC_SUBST([AM_V])dnl
    AM_SUBST_NOTMAKE([AM_V])dnl
    AC_SUBST([AM_DEFAULT_V])dnl
    AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
    AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
    AM_BACKSLASH='\'
    AC_SUBST([AM_BACKSLASH])dnl
    _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
    ])
    
    # Copyright (C) 2001-2018 Free Software Foundation, Inc.
    #
    # This file is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
    
    # AM_PROG_INSTALL_STRIP
    # ---------------------
    # One issue with vendor 'install' (even GNU) is that you can't
    # specify the program used to strip binaries.  This is especially
    # annoying in cross-compiling environments, where the build's strip
    # is unlikely to handle the host's binaries.
    # Fortunately install-sh will honor a STRIPPROG variable, so we
    # always use install-sh in "make install-strip", and initialize
    # STRIPPROG with the value of the STRIP variable (set by the user).
    AC_DEFUN([AM_PROG_INSTALL_STRIP],
    [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
    # Installed binaries are usually stripped using 'strip' when the user
    # run "make install-strip".  However 'strip' might not be the right
    # tool to use in cross-compilation environments, therefore Automake
    # will honor the 'STRIP' environment variable to overrule this program.
    dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
    if test "$cross_compiling" != no; then
      AC_CHECK_TOOL([STRIP], [strip], :)
    fi
    INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
    AC_SUBST([INSTALL_STRIP_PROGRAM])])
    
    # Copyright (C) 2006-2018 Free Software Foundation, Inc.
    #
    # This file is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
    
    # _AM_SUBST_NOTMAKE(VARIABLE)
    # ---------------------------
    # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
    # This macro is traced by Automake.
    AC_DEFUN([_AM_SUBST_NOTMAKE])
    
    # AM_SUBST_NOTMAKE(VARIABLE)
    # --------------------------
    # Public sister of _AM_SUBST_NOTMAKE.
    AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
    
    # Check how to create a tarball.                            -*- Autoconf -*-
    
    # Copyright (C) 2004-2018 Free Software Foundation, Inc.
    #
    # This file is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
    
    # _AM_PROG_TAR(FORMAT)
    # --------------------
    # Check how to create a tarball in format FORMAT.
    # FORMAT should be one of 'v7', 'ustar', or 'pax'.
    #
    # Substitute a variable $(am__tar) that is a command
    # writing to stdout a FORMAT-tarball containing the directory
    # $tardir.
    #     tardir=directory && $(am__tar) > result.tar
    #
    # Substitute a variable $(am__untar) that extract such
    # a tarball read from stdin.
    #     $(am__untar) < result.tar
    #
    AC_DEFUN([_AM_PROG_TAR],
    [# Always define AMTAR for backward compatibility.  Yes, it's still used
    # in the wild :-(  We should find a proper way to deprecate it ...
    AC_SUBST([AMTAR], ['$${TAR-tar}'])
    
    # We'll loop over all known methods to create a tar archive until one works.
    _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
    
    m4_if([$1], [v7],
      [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
    
      [m4_case([$1],
        [ustar],
         [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
          # There is notably a 21 bits limit for the UID and the GID.  In fact,
          # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
          # and bug#13588).
          am_max_uid=2097151 # 2^21 - 1
          am_max_gid=$am_max_uid
          # The $UID and $GID variables are not portable, so we need to resort
          # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
          # below are definitely unexpected, so allow the users to see them
          # (that is, avoid stderr redirection).
          am_uid=`id -u || echo unknown`
          am_gid=`id -g || echo unknown`
          AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
          if test $am_uid -le $am_max_uid; then
             AC_MSG_RESULT([yes])
          else
             AC_MSG_RESULT([no])
             _am_tools=none
          fi
          AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
          if test $am_gid -le $am_max_gid; then
             AC_MSG_RESULT([yes])
          else
            AC_MSG_RESULT([no])
            _am_tools=none
          fi],
    
      [pax],
        [],
    
      [m4_fatal([Unknown tar format])])
    
      AC_MSG_CHECKING([how to create a $1 tar archive])
    
      # Go ahead even if we have the value already cached.  We do so because we
      # need to set the values for the 'am__tar' and 'am__untar' variables.
      _am_tools=${am_cv_prog_tar_$1-$_am_tools}
    
      for _am_tool in $_am_tools; do
        case $_am_tool in
        gnutar)
          for _am_tar in tar gnutar gtar; do
            AM_RUN_LOG([$_am_tar --version]) && break
          done
          am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
          am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
          am__untar="$_am_tar -xf -"
          ;;
        plaintar)
          # Must skip GNU tar: if it does not support --format= it doesn't create
          # ustar tarball either.
          (tar --version) >/dev/null 2>&1 && continue
          am__tar='tar chf - "$$tardir"'
          am__tar_='tar chf - "$tardir"'
          am__untar='tar xf -'
          ;;
        pax)
          am__tar='pax -L -x $1 -w "$$tardir"'
          am__tar_='pax -L -x $1 -w "$tardir"'
          am__untar='pax -r'
          ;;
        cpio)
          am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
          am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
          am__untar='cpio -i -H $1 -d'
          ;;
        none)
          am__tar=false
          am__tar_=false
          am__untar=false
          ;;
        esac
    
        # If the value was cached, stop now.  We just wanted to have am__tar
        # and am__untar set.
        test -n "${am_cv_prog_tar_$1}" && break
    
        # tar/untar a dummy directory, and stop if the command works.
        rm -rf conftest.dir
        mkdir conftest.dir
        echo GrepMe > conftest.dir/file
        AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
        rm -rf conftest.dir
        if test -s conftest.tar; then
          AM_RUN_LOG([$am__untar /dev/null 2>&1 && break
        fi
      done
      rm -rf conftest.dir
    
      AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
      AC_MSG_RESULT([$am_cv_prog_tar_$1])])
    
    AC_SUBST([am__tar])
    AC_SUBST([am__untar])
    ]) # _AM_PROG_TAR
    
    ./ciwiki-3.0.4/ciwiki.png000777 001750 001750 00000013122 11410310372 017477 0ustar00jpredonnetjpredonnet000000 000000 PNG
    
    
    IHDREפbKGDC	pHYsHHFk>IDATxiǧdI%&";#J`7pȋ9	Q;	  (b0hDDD"b*snߛ鮚Ꞿ/zfo޺1RۡZaalеRCiOjU)!>ܵCJnumE塔ݺ_OҎ_;-$J3iۛ1ZiOt\ȁxeM瞃._7\o}eѵk8K6Y;>Y^#֍}EПڷo2+Ѕ55p,6n
    arp`U"Rj}Զ6mpvf?vǎfڳڢKbhLJ4AsgChFіot\裏B_xн{҂kRj}!hm=lM7A⭃zO.Z}5=Y9!t*(f~(=З/[GA^P\{{.ݯhyYVr <ZS`5ʬ]c78(%gaCJ{RAU#F`oz+BGi䈮]xs󱞝;]ok@HhO
    ҥw?̙[n|E7"=F7a:hM%@4/c]nʗ_B?..4Ai 'DJ	b%KuǠ睇SE)!xؼzXޚPIԺiSV9p((%aى'Be죔ԃvADTxz8rE}7ݻÆw
    ʎCa@H5
    (9qĈC1^prΝ=Y7Rgv{cyY;ҚSS
    :z
    ÔJ}KJgR!C&ǡH]@oQX;r 
    Dr!LӢgOo$J
    wk,Q_#ukKEBJ͛2$yCJ	AvpmMeC{,?n(ÖAup\}]9ۃW^_Â!])b^'OƁ&AC@&O?>k˘,ѿ?#4%+Š!\w[G?y¤[q#}cyq;Ձ8`(()4"L´aRCѾh˸fPaҀ\=k[vRTǂ_\[d)/q1Xb8٬Yіm\&-(%X_v7 ɞ*RR)`(q?3ǵi%!͚=>*;
    Ŝ*'c[8=J	hobǾ2~CbPYZ{,\=ڵi'bČШiٮwfl9UU%[Q4LRm*	Ơ:&K~;40s&ٗ^rma)RBKv<r
    IyZBB3In9tFJC;R_ʵBw{1Z91q\m2u ֬vKj(#XC]Ժa~ndq~kk+"{ n0&ʈTKgi7umJ TW^bLQ!TBXr%n0&*hANcIZCӐSQ)LvRG[,cp;uE[vlCtLj.D6b[nŋ9t緿J5?J9jٚ0	(%DNдΚF=ZTi:7mB{N;1@`l!֧egtVV:!=ÇCX>Ӣ26Ib.DʩB۶0m]0R
    О>w~K8abHپg7ccE]-V(u.DXb>v1ɘ1`J0+x)me
    [%Nkv7 NjLgT?7.Huh'ih~Q-/ySNZznM4NRD.l0ن%
    gdp LA1L9HzA.yCYԺO/?&(uٰLPJO>AVfܞg$`u!;}qcJq#4lS.I']
    OŸ 3v=3Xek&;HuVhzkPeIh|z۳QH5Ubs8o,@LdvgQ[@)N\zca¾\.~%8t6w=Psbښ[s{ :ʮᖭ[7tm股t9bK%ɞ^sgr;ۑtz]@J
    Bd7tc|;m58[V$3VYG:^Ŏf
    rrueB%SLi|V0oFev +?߲ŵe!tO.d2UWA?9̙w >؞쉻'ʍf);z):Diju)n%’)0PÆ7	upSJ]@QkpY܎i!ו	~(]Ga\qSNqmq17o)?J	?X{XVPFv:H\vmf=tu)$ܟPOČ<5`l7-tP[*&5 [C0Jeڛ6~]7,Y'SL4̝J؂C$ɀ_}5Q&MѷooFRjݸ1Bi8iBsr.E!~]˕WBʤIaLi;_[o5d@'NcJ	AoTJ4;	'~45]:uU
    'Y]oSޢtb|;۷5B$%"x!ם:፭]+rI͡uU%K%|55:+w (;Ÿb_u8Tq@xЗ_F	]خuRQ+Lw|1wC5nDLRk]v
    5o;uR!ꊯF>}_6;4(pv`b<;C] ݻCǎv-Mv׼A
    t@CJÒ()=pZ?8>:̲5d5ސ!h*q-4u@x(%K.]jfI+PIz-+d^|jl!Ghή-LBmMc_.}Cn
    ]tRB<<3gYMzk˃5@iO>jڶ!A)!Izׇmk?R룏F
    j\f
    ꉨQ|]	t9x0ӠA8Kb$|
    t!ٺa$
    6=߻w᤮Bx	hX.ET
    KQ.*˸E)!E{9i<RBlތRcWhɣJ^hr)ͅRkJ:
    ]0G)!hcYծR	Ib~2L86CRjݡ׭\,.Pij*lcqwzK+b,qߔ㠙$A3\ʅ(5tv]8.r~IhCxjK7co6lpEP*_ݔNץ)F	Ѕ99.hzm,^|-KԛcӡJ"Gb:V⬳sqRBsf(2'KRB:ӦY]I}
    q+:F͙cgTe$[vFou@0I楗kv;wBHl98+VmzP
    7@MѣAR)D\{msXǎ7axCC?\z袐}CAnCLPJC{x;h:c'GZJ	A]J?mutFpPɨLDPG0&֮^W\zKFLhRߎ0L0@>t͚d`玞;+݆ZGkƷSb᜗]z0صIeB,/и8tظﶳr֦=J	h-5{5;aJ7}ӡ\L
    r</6o׿RNiFs_3a!(%ɔ:~
    z5w|Vhr%ۏ?kØ;Gp$(ْ	b0A)!+&@{0PB5/`+VKDup8tXm[=i0,$1*%ŨhuB55<**6B(n]`*ښ=vD<ڶuI(ӟJYat;FiHBo4鉽xӋ].NI;J	hOhg͚A&2<G*~-]Zohv@HcZz(Ҭ]u ,^_iͅS>0.}&2+%;@
    g¿ڵ8p4k`)6mO][D;|wQEE͢Encxs^Dʯu1mZz_l0D
    qPiks#:
    8pJAusgZ7im=Jp#ΤPMbEmRJʁBvsJ	3hϚeg]@oֺkɪ@:ӰP*1ھ=tZRueg}.zisυsiSo7lN)OV>c
    e\~eINġ&-[]xN̙[\nR0yw.>~#V^_@QҽI=4E(Ulܸrׯ.X?'Ɏ
    su^sd)nm]Ƌ_x+C{*(Z>rg_ҩJJKы-^}*%foHzMCϑRf}8_S@=B
    J9sѼ_5R.`Iɣ|E_:.vۊ핂RBdq:)n-[ܸ]YtgWZ*)z?xhy뭋}8y>+=6IENDB`./ciwiki-3.0.4/docs/000775 001750 001750 00000000000 14305574371 016457 5ustar00jpredonnetjpredonnet000000 000000 ./ciwiki-3.0.4/docs/Makefile.am000777 001750 001750 00000000027 12466324573 020522 0ustar00jpredonnetjpredonnet000000 000000 man1_MANS = ciwiki.man
    ./ciwiki-3.0.4/docs/TEMPLATES000664 001750 001750 00000001670 14265216536 017745 0ustar00jpredonnetjpredonnet000000 000000 You can create 5 templates: 01.template, 02.template, 03.template, 04.template, 05.template.
    
    These template will help you to create repetitive pages; 
    it's particularly useful when page design are complexe.
    
    The first templates file name is 01.template and name of the page is 01.template.
    The templates are located inside ./ciwiki folder with all the other wiki pages.
    
    Templates are visible when the Index page is open (click on Index on the upper menu).
    
    To create another template for example the template 2: 
    Click on New and enter as file name 02.template and so forth for templates 3...5.
    
    To modify any template: Click on Index and look for the 0x.template (x is a number from 1 to 5),
     then click on Edit (Upper-left). 
    To delete any template, it's the same procedure: 
    Click on Index , look for the 0x.template and click on Delete (Upper-left). 
    Note: If you delete the template 01.template then Ciwiki will recreate it during its restart.
    
    ./ciwiki-3.0.4/docs/PAGESTYLES000777 001750 001750 00000001641 14264644527 020076 0ustar00jpredonnetjpredonnet000000 000000 To change styles:
    
    styles.css is in the folder .ciwiki/configuration and you can edit this file to change the police, color...
    If you delete it, ciwiki will create a new one with the default values.
    
    To change or to translate text or
    to modify field position in the page: 
    
    You can edit htm files located in the folder .ciwiki/configuration. 
    These files are created during the first run of ciwiki and they are read when ciwiki is restarted.
    If you delete a htm file, ciwiki will create a new one with the default values.
    These files are coded in html.
    
    Description:
    
    EditHeader.htm  : Head of wiki page displayed (login link is present).
    PageHeader.htm  : Head of the page edited.
    ShortHelp.htm   : Help above the text input.
    EditForm.htm    : Text input (bloc) and buttons to edit the page.
    CreateForm.htm  : To enter name of the new page and to select a template (eventually).
    DeleteForm.htm  : Confirmation to delete a page.
    ./ciwiki-3.0.4/docs/MEMO_DEVELOPPER000664 001750 001750 00000000247 14264640427 020667 0ustar00jpredonnetjpredonnet000000 000000 => Update Makefile.am 
    if new files to copy or new subdir
    
    => Update configure.ac for version and email
    AC_INIT(ciwiki, 3.0.0, [inphilly@gmail.com])
    
    => sh autogen.sh
    ./ciwiki-3.0.4/docs/MYSERVER000777 001750 001750 00000000735 12462215627 017666 0ustar00jpredonnetjpredonnet000000 000000 To create your little Wiki server you need to know your ip adress.
    
    In the console, type ifconfig eth0 and record the inet adr.
    
    For instance:
    
    jp@jp-laptop:~$ ifconfig
    eth0      Link encap:Ethernet  HWaddr 00:c0:9e:1c:77:31  
              inet adr:191.149.1.58   ...
    
    So my inet adress is: 191.149.1.58
    
    If ciwiki runs in default mode, the port is 8000 
    (use "ciwiki --port xxxx" to change it) and the adress the users will 
    have to enter in their browser is 191.149.1.58:8000
    
    
    ./ciwiki-3.0.4/docs/FAVICON000664 001750 001750 00000002055 12662064303 017462 0ustar00jpredonnetjpredonnet000000 000000 Febuary 20, 2016
    
    Ciwiki has is own favicon stored inside the code but it's possible to override it.
    At the startup, it will load the favicon file named .favicon.ico located in the folder .ciwiki
    (this folder is hidden, check Show hidden files in your files browser).
    
    The favicon file must have the name .favicon.ico and must be hidden (dot before the file name).
    The file must be in the folder .ciwiki and the file can't exceed 1024 bits.
    
    If .favicon.ico doesn't exist or cannot be read or is larger than 1024 bytes, the default favicon is used.
    
    The favicon is loaded during the startup of ciwiki. If you change the .favicon.ico file, you will have to stop 
    and restart ciwiki.
    
    Firefox need to be stopped and restarted to load the new favicon (I didn't test the other web browser).
    
    You can create your favicon online with http://www.favicon.cc/ , it's very easy and 
    your favicon can be animated. Dont forget, ciwiki will not load favicon larger than 1024 bytes.
    
    Note: Example of favicon.ico is available in /docs; copy it in /.ciwiki and rename it .favicon.ico
    ./ciwiki-3.0.4/docs/FORMS000777 001750 001750 00000001707 11373503422 017271 0ustar00jpredonnetjpredonnet000000 000000 There is a possibility to create a simple form with one entry, 
    usefull to make a todo list for example.
    
    There are 4 tags:
    {{entry}}
    {{data}}
    {{delete}}
    {{save}}
    
    {{entry}} create a simple entry field and a button "add".
    
    {{data}} mark the place where the entries are written (just after
     the tag). This tag must be terminated with a new line.
    Note: A checkbox is automatically added with each entry.
     
    {{save}} saves the status of the checkbox (checked).
    {{delete}} removes the entries checked.
    
    
    Extra parameters for entry:
    
    tiny small medium large huge define the lenght of the entry.
    date inserts a date in the entry.
    data asks to write the entries after the tag {entry...} , {{data}} is not 
    required in this case. Example: {{entry large date data}}
    
    save and delete can be combined: {{save delete}}.
    
    Other examples of Todo list:
    Simple:
    
    {{entry large data}}
    {{save delete}}
    
    With labels:
    
    {{entry}}
    List of things to do:
    
    {{data}}
    
    Actions:
    {{delete save}}
    
    ./ciwiki-3.0.4/docs/Makefile.in000664 001750 001750 00000033531 14274674000 020524 0ustar00jpredonnetjpredonnet000000 000000 # Makefile.in generated by automake 1.16.1 from Makefile.am.
    # @configure_input@
    
    # Copyright (C) 1994-2018 Free Software Foundation, Inc.
    
    # This Makefile.in is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
    
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
    # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    # PARTICULAR PURPOSE.
    
    @SET_MAKE@
    VPATH = @srcdir@
    am__is_gnu_make = { \
      if test -z '$(MAKELEVEL)'; then \
        false; \
      elif test -n '$(MAKE_HOST)'; then \
        true; \
      elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
        true; \
      else \
        false; \
      fi; \
    }
    am__make_running_with_option = \
      case $${target_option-} in \
          ?) ;; \
          *) echo "am__make_running_with_option: internal error: invalid" \
                  "target option '$${target_option-}' specified" >&2; \
             exit 1;; \
      esac; \
      has_opt=no; \
      sane_makeflags=$$MAKEFLAGS; \
      if $(am__is_gnu_make); then \
        sane_makeflags=$$MFLAGS; \
      else \
        case $$MAKEFLAGS in \
          *\\[\ \	]*) \
            bs=\\; \
            sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
              | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
        esac; \
      fi; \
      skip_next=no; \
      strip_trailopt () \
      { \
        flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
      }; \
      for flg in $$sane_makeflags; do \
        test $$skip_next = yes && { skip_next=no; continue; }; \
        case $$flg in \
          *=*|--*) continue;; \
            -*I) strip_trailopt 'I'; skip_next=yes;; \
          -*I?*) strip_trailopt 'I';; \
            -*O) strip_trailopt 'O'; skip_next=yes;; \
          -*O?*) strip_trailopt 'O';; \
            -*l) strip_trailopt 'l'; skip_next=yes;; \
          -*l?*) strip_trailopt 'l';; \
          -[dEDm]) skip_next=yes;; \
          -[JT]) skip_next=yes;; \
        esac; \
        case $$flg in \
          *$$target_option*) has_opt=yes; break;; \
        esac; \
      done; \
      test $$has_opt = yes
    am__make_dryrun = (target_option=n; $(am__make_running_with_option))
    am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
    pkgdatadir = $(datadir)/@PACKAGE@
    pkgincludedir = $(includedir)/@PACKAGE@
    pkglibdir = $(libdir)/@PACKAGE@
    pkglibexecdir = $(libexecdir)/@PACKAGE@
    am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
    install_sh_DATA = $(install_sh) -c -m 644
    install_sh_PROGRAM = $(install_sh) -c
    install_sh_SCRIPT = $(install_sh) -c
    INSTALL_HEADER = $(INSTALL_DATA)
    transform = $(program_transform_name)
    NORMAL_INSTALL = :
    PRE_INSTALL = :
    POST_INSTALL = :
    NORMAL_UNINSTALL = :
    PRE_UNINSTALL = :
    POST_UNINSTALL = :
    subdir = docs
    ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    am__aclocal_m4_deps = $(top_srcdir)/configure.ac
    am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
    	$(ACLOCAL_M4)
    DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
    mkinstalldirs = $(install_sh) -d
    CONFIG_HEADER = $(top_builddir)/config.h
    CONFIG_CLEAN_FILES =
    CONFIG_CLEAN_VPATH_FILES =
    AM_V_P = $(am__v_P_@AM_V@)
    am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
    am__v_P_0 = false
    am__v_P_1 = :
    AM_V_GEN = $(am__v_GEN_@AM_V@)
    am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
    am__v_GEN_0 = @echo "  GEN     " $@;
    am__v_GEN_1 = 
    AM_V_at = $(am__v_at_@AM_V@)
    am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
    am__v_at_0 = @
    am__v_at_1 = 
    SOURCES =
    DIST_SOURCES =
    am__can_run_installinfo = \
      case $$AM_UPDATE_INFO_DIR in \
        n|no|NO) false;; \
        *) (install-info --version) >/dev/null 2>&1;; \
      esac
    am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
    am__vpath_adj = case $$p in \
        $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
        *) f=$$p;; \
      esac;
    am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
    am__install_max = 40
    am__nobase_strip_setup = \
      srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
    am__nobase_strip = \
      for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
    am__nobase_list = $(am__nobase_strip_setup); \
      for p in $$list; do echo "$$p $$p"; done | \
      sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
      $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
        if (++n[$$2] == $(am__install_max)) \
          { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
        END { for (dir in files) print dir, files[dir] }'
    am__base_list = \
      sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
      sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
    am__uninstall_files_from_dir = { \
      test -z "$$files" \
        || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
        || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
             $(am__cd) "$$dir" && rm -f $$files; }; \
      }
    man1dir = $(mandir)/man1
    am__installdirs = "$(DESTDIR)$(man1dir)"
    NROFF = nroff
    MANS = $(man1_MANS)
    am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
    am__DIST_COMMON = $(srcdir)/Makefile.in README
    DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
    ACLOCAL = @ACLOCAL@
    ALLOCA = @ALLOCA@
    AMTAR = @AMTAR@
    AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
    AUTOCONF = @AUTOCONF@
    AUTOHEADER = @AUTOHEADER@
    AUTOMAKE = @AUTOMAKE@
    AWK = @AWK@
    CC = @CC@
    CCDEPMODE = @CCDEPMODE@
    CFLAGS = @CFLAGS@
    CPP = @CPP@
    CPPFLAGS = @CPPFLAGS@
    CYGPATH_W = @CYGPATH_W@
    DEFS = @DEFS@
    DEPDIR = @DEPDIR@
    ECHO_C = @ECHO_C@
    ECHO_N = @ECHO_N@
    ECHO_T = @ECHO_T@
    EGREP = @EGREP@
    EXEEXT = @EXEEXT@
    GCC_FLAGS = @GCC_FLAGS@
    GREP = @GREP@
    INSTALL = @INSTALL@
    INSTALL_DATA = @INSTALL_DATA@
    INSTALL_PROGRAM = @INSTALL_PROGRAM@
    INSTALL_SCRIPT = @INSTALL_SCRIPT@
    INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
    LDFLAGS = @LDFLAGS@
    LIBOBJS = @LIBOBJS@
    LIBS = @LIBS@
    LTLIBOBJS = @LTLIBOBJS@
    MAKEINFO = @MAKEINFO@
    MKDIR_P = @MKDIR_P@
    OBJEXT = @OBJEXT@
    PACKAGE = @PACKAGE@
    PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
    PACKAGE_NAME = @PACKAGE_NAME@
    PACKAGE_STRING = @PACKAGE_STRING@
    PACKAGE_TARNAME = @PACKAGE_TARNAME@
    PACKAGE_URL = @PACKAGE_URL@
    PACKAGE_VERSION = @PACKAGE_VERSION@
    PATH_SEPARATOR = @PATH_SEPARATOR@
    SET_MAKE = @SET_MAKE@
    SHELL = @SHELL@
    STRIP = @STRIP@
    VERSION = @VERSION@
    abs_builddir = @abs_builddir@
    abs_srcdir = @abs_srcdir@
    abs_top_builddir = @abs_top_builddir@
    abs_top_srcdir = @abs_top_srcdir@
    ac_ct_CC = @ac_ct_CC@
    am__include = @am__include@
    am__leading_dot = @am__leading_dot@
    am__quote = @am__quote@
    am__tar = @am__tar@
    am__untar = @am__untar@
    bindir = @bindir@
    build_alias = @build_alias@
    builddir = @builddir@
    datadir = @datadir@
    datarootdir = @datarootdir@
    docdir = @docdir@
    dvidir = @dvidir@
    exec_prefix = @exec_prefix@
    host_alias = @host_alias@
    htmldir = @htmldir@
    includedir = @includedir@
    infodir = @infodir@
    install_sh = @install_sh@
    libdir = @libdir@
    libexecdir = @libexecdir@
    localedir = @localedir@
    localstatedir = @localstatedir@
    mandir = @mandir@
    mkdir_p = @mkdir_p@
    oldincludedir = @oldincludedir@
    pdfdir = @pdfdir@
    prefix = @prefix@
    program_transform_name = @program_transform_name@
    psdir = @psdir@
    runstatedir = @runstatedir@
    sbindir = @sbindir@
    sharedstatedir = @sharedstatedir@
    srcdir = @srcdir@
    sysconfdir = @sysconfdir@
    target_alias = @target_alias@
    top_build_prefix = @top_build_prefix@
    top_builddir = @top_builddir@
    top_srcdir = @top_srcdir@
    man1_MANS = ciwiki.man
    all: all-am
    
    .SUFFIXES:
    $(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
    	@for dep in $?; do \
    	  case '$(am__configure_deps)' in \
    	    *$$dep*) \
    	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    	        && { if test -f $@; then exit 0; else break; fi; }; \
    	      exit 1;; \
    	  esac; \
    	done; \
    	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/Makefile'; \
    	$(am__cd) $(top_srcdir) && \
    	  $(AUTOMAKE) --gnu docs/Makefile
    Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
    	@case '$?' in \
    	  *config.status*) \
    	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
    	  *) \
    	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
    	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
    	esac;
    
    $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
    	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    
    $(top_srcdir)/configure:  $(am__configure_deps)
    	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    $(ACLOCAL_M4):  $(am__aclocal_m4_deps)
    	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    $(am__aclocal_m4_deps):
    install-man1: $(man1_MANS)
    	@$(NORMAL_INSTALL)
    	@list1='$(man1_MANS)'; \
    	list2=''; \
    	test -n "$(man1dir)" \
    	  && test -n "`echo $$list1$$list2`" \
    	  || exit 0; \
    	echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
    	$(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
    	{ for i in $$list1; do echo "$$i"; done;  \
    	if test -n "$$list2"; then \
    	  for i in $$list2; do echo "$$i"; done \
    	    | sed -n '/\.1[a-z]*$$/p'; \
    	fi; \
    	} | while read p; do \
    	  if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
    	  echo "$$d$$p"; echo "$$p"; \
    	done | \
    	sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
    	      -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
    	sed 'N;N;s,\n, ,g' | { \
    	list=; while read file base inst; do \
    	  if test "$$base" = "$$inst"; then list="$$list $$file"; else \
    	    echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
    	    $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
    	  fi; \
    	done; \
    	for i in $$list; do echo "$$i"; done | $(am__base_list) | \
    	while read files; do \
    	  test -z "$$files" || { \
    	    echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
    	    $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
    	done; }
    
    uninstall-man1:
    	@$(NORMAL_UNINSTALL)
    	@list='$(man1_MANS)'; test -n "$(man1dir)" || exit 0; \
    	files=`{ for i in $$list; do echo "$$i"; done; \
    	} | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
    	      -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
    	dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
    tags TAGS:
    
    ctags CTAGS:
    
    cscope cscopelist:
    
    
    distdir: $(BUILT_SOURCES)
    	$(MAKE) $(AM_MAKEFLAGS) distdir-am
    
    distdir-am: $(DISTFILES)
    	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
    	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
    	list='$(DISTFILES)'; \
    	  dist_files=`for file in $$list; do echo $$file; done | \
    	  sed -e "s|^$$srcdirstrip/||;t" \
    	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
    	case $$dist_files in \
    	  */*) $(MKDIR_P) `echo "$$dist_files" | \
    			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
    			   sort -u` ;; \
    	esac; \
    	for file in $$dist_files; do \
    	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
    	  if test -d $$d/$$file; then \
    	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
    	    if test -d "$(distdir)/$$file"; then \
    	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
    	    fi; \
    	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
    	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
    	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
    	    fi; \
    	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
    	  else \
    	    test -f "$(distdir)/$$file" \
    	    || cp -p $$d/$$file "$(distdir)/$$file" \
    	    || exit 1; \
    	  fi; \
    	done
    check-am: all-am
    check: check-am
    all-am: Makefile $(MANS)
    installdirs:
    	for dir in "$(DESTDIR)$(man1dir)"; do \
    	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
    	done
    install: install-am
    install-exec: install-exec-am
    install-data: install-data-am
    uninstall: uninstall-am
    
    install-am: all-am
    	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
    
    installcheck: installcheck-am
    install-strip:
    	if test -z '$(STRIP)'; then \
    	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
    	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
    	      install; \
    	else \
    	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
    	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
    	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
    	fi
    mostlyclean-generic:
    
    clean-generic:
    
    distclean-generic:
    	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
    	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
    
    maintainer-clean-generic:
    	@echo "This command is intended for maintainers to use"
    	@echo "it deletes files that may require special tools to rebuild."
    clean: clean-am
    
    clean-am: clean-generic mostlyclean-am
    
    distclean: distclean-am
    	-rm -f Makefile
    distclean-am: clean-am distclean-generic
    
    dvi: dvi-am
    
    dvi-am:
    
    html: html-am
    
    html-am:
    
    info: info-am
    
    info-am:
    
    install-data-am: install-man
    
    install-dvi: install-dvi-am
    
    install-dvi-am:
    
    install-exec-am:
    
    install-html: install-html-am
    
    install-html-am:
    
    install-info: install-info-am
    
    install-info-am:
    
    install-man: install-man1
    
    install-pdf: install-pdf-am
    
    install-pdf-am:
    
    install-ps: install-ps-am
    
    install-ps-am:
    
    installcheck-am:
    
    maintainer-clean: maintainer-clean-am
    	-rm -f Makefile
    maintainer-clean-am: distclean-am maintainer-clean-generic
    
    mostlyclean: mostlyclean-am
    
    mostlyclean-am: mostlyclean-generic
    
    pdf: pdf-am
    
    pdf-am:
    
    ps: ps-am
    
    ps-am:
    
    uninstall-am: uninstall-man
    
    uninstall-man: uninstall-man1
    
    .MAKE: install-am install-strip
    
    .PHONY: all all-am check check-am clean clean-generic cscopelist-am \
    	ctags-am distclean distclean-generic distdir dvi dvi-am html \
    	html-am info info-am install install-am install-data \
    	install-data-am install-dvi install-dvi-am install-exec \
    	install-exec-am install-html install-html-am install-info \
    	install-info-am install-man install-man1 install-pdf \
    	install-pdf-am install-ps install-ps-am install-strip \
    	installcheck installcheck-am installdirs maintainer-clean \
    	maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
    	pdf-am ps ps-am tags-am uninstall uninstall-am uninstall-man \
    	uninstall-man1
    
    .PRECIOUS: Makefile
    
    
    # Tell versions [3.59,3.63) of GNU make to not export all variables.
    # Otherwise a system limit (for SysV at least) may be exceeded.
    .NOEXPORT:
    ./ciwiki-3.0.4/docs/IMAGES_and_ZIP000777 001750 001750 00000000676 12462136021 020715 0ustar00jpredonnetjpredonnet000000 000000 Version 1.7 and above:
    You can store images in the folder ~/.ciwiki/images and compressed files in the folder ~/.ciwiki/files.
    The image formats accepted are .png, .jpg, .jpeg, .gif .pdf , and the compressed formats accepted are .zip, .gz, .bz2, .tar .
    To display an image in the wiki page, add this line: [images/YourPhoto.png]
    To add a link to a file, add this line: [files/YourFile.zip]
    
    (The page WikiHome contains an example of links above)
    ./ciwiki-3.0.4/docs/FIRST000777 001750 001750 00000003023 12462227433 017270 0ustar00jpredonnetjpredonnet000000 000000 <<< QUICK START >>>
    
    1 - Install ciwiki (tar.gz file)
    
    [*] Stop ciwiki if running ( kill -15 `pidof ciwiki` )
    
    In the console, type:
    cd ciwiki-x    (x: version number, 2.0.0 for instance)
    ./configure
    make
    sudo make install
    ciwiki   (or ciwiki -r   to reinstall WikiHelp)
    
    2 - Autostart
    
    Xfce: 
    Parameters => Session & Startup => Autostart => + Add
    Edit the name: ciwiki and the command: ciwiki
    Gnome:
    System => Preferences => Startup => Add
    Edit the name: ciwiki and the command: ciwiki
    
    
    3 - If problems
    
    In the console, type:
    whereis ciwiki
    return should be: /usr/local/bin/ciwiki
    
    ciwiki -v
    return should be: CiWiki - version x (x: the version installed)
    
    pidof ciwiki
    return should be: xxxx (xxxx: pid of ciwiki if it's running.)
    
    [*] Terminate ciwiki:
    kill -15 `pidof ciwiki`
    
    4 - Port
    
    * Normally is 8000
    When you lauch ciwiki (in the console) you should read:
    Attempting to bind to 0.0.0.0:8000 .. Success! 
    ciwiki Started. Please point your browser at 0.0.0.0:8000
    
    Then enter http://0.0.0.0:8000/ or http://localhost:8000/ in the address bar of Firefox...
    
    * If you want to choose another port (strongly recommanded to keep your privacy if your computer
    is a network):
    ciwiki -p xxxx  (xxxx: port number)
    
    * To allow other users on your netword to access to your wiki:
    You will have to give them your inet address and the port
    Type: ifconfig and look for 'net adr'
    The user will have to enter: http://xxx.xxx.xxx.xxx:yyyy
    xxx.xxx.xxx.xxx is the inet adr and yyyy the port number.
    
    To keep some page private (unreadable), use the tag {{private}}
    
    ./ciwiki-3.0.4/docs/README000777 001750 001750 00000000565 12462230633 017342 0ustar00jpredonnetjpredonnet000000 000000 1 - Please read ChangeLog (in ciwiki-2.x.x folder)
    2 - If you upgrade CiWiki from a previous version ( < 2.0.0 ) : 
    - Please copy the files from the folder.didiwiki to the folder .ciwiki/  ( cp .didiwiki/* .ciwiki )
    and copy the file .login.txt from the folder .didiwiki/permission to the folder .ciwiki/permission
    ( cp .didiwiki/permission/.login.txt .ciwiki/permission )
    ./ciwiki-3.0.4/docs/RUNNING_SCRIPT000664 001750 001750 00000001136 14271666077 020616 0ustar00jpredonnetjpredonnet000000 000000 Experimental feature
    
    It is possible to run a script on the server, to do this :
    
    - The script must be located in the folder /scripts/ and this folder is inside .ciwiki.
    - ciwiki must be launched with the argument --exec.
    - The client must be logged in.
    - The script is called from a client computer, like this : 
    
      inet_adress/.Execute?Script=myscript.sh
    
    myscript.sh is the script to run in the server side. It must be executable.
    
    Example of script displaying the uptime and the memory available:
    
    #!/bin/sh
    uptime
    echo " "
    free
    echo " "
    echo "------------------------------------------------------"
    
    
    ./ciwiki-3.0.4/docs/ciwiki.man000777 001750 001750 00000005361 12466416761 020451 0ustar00jpredonnetjpredonnet000000 000000 .\" ciwiki.1
    .SH NAME
    ciwiki \- simple wiki implementation with built-in webserver
    
    .SH SYNOPSIS
    .B ciwiki
    .RI [ options ]
    
    .SH DESCRIPTION
    ciwiki is aimed at those who need a quick and lightweight wiki for personal
    use, such as notes, "to do" lists, etc. It is written in C, and has
    a low system requirements (binary size of ~73k stripped with
     ./configure CFLAGS='-s -Os'). This makes it particularly useful for
    low-power systems (Raspberry Pi).
    
    ciwiki does not require installation of a separate webserver, scripting
    language, or database.
    
    The appearance of the wiki pages may be altered by placing a
    styles.css in \fI~/.ciwiki\fR or in the directory specified using
    the \fB--home\fR option.
    
    .SH OPTIONS
    .TP
    \fB\-d\fR, \fB\--debug\fR
    Start in debug mode. In this case, ciwiki will not bind to any IP address or port: 
    it will only read the requests from standard input (stdin)
    
    .TP
    \fB\-h\fR \fIdirectory\fR, \fB\--home\fR=\fIdirectory\fR
    By default ciwiki stores its pages in \fI~/.ciwiki\fR. You can override this by
    specifying an alternative directory.
    
    .TP
    \fB\-l\fR \fIipaddr\fR, \fB\--listen\fR=\fIipaddr\fR
    By default ciwiki binds to "0.0.0.0". You can override this by specifying an alternative IP address.
    
    .TP
    \fB\-p\fR \fIport\fR, \fB\--port\fR=\fIport\fR
    By default ciwiki will listen on port \fI8000\fR. You can override this by specifying an alternative port.
    
    .TP
    \fB\-a\fR\, \fB\--autologin\fR
    The localhost is logged automaticcally.
    
    .TP
    \fB\-n\fR\, \fB\--nologin\fR
    No login, all user can modify the wiki.
    
    .TP
    \fB\-s\fR\, \fB\--sendmail\fR
    Runs notifynewuser.sh. Validation code, login and password are sent via email.
    ssmtp must be installed.
    
    .TP
    \fB\-i length\fR\, \fB\--index=length\fR
    Number of links to display in each box of the index page.
    
    .TP
    \fB\-u\fR\, \fB\--unmasked\fR
    Default: The password is masked. --unmasked allows to show it.
    
    .TP
    \fB\-v\fR\, \fB\--version\fR
    Ciwiki version number.
    
    .TP
    \fB\--help\fR
    Display the help message
    
    .LP
    To notify new users via email of their validation code, login and password,
    you need ssmpt and the script notifynewuser.sh .
    (notifynewuser.sh is included in the package and should be located in the folder 
    /usr/local/libexec .
    If you do not use the default port 8000, you will have to edit notifynewuser.sh 
    line #25 to provide the actual port #.
    
    .LP
    .SH EXAMPLES
    .TP
    \fBciwiki\fR uses syslog to log when it is launched or stopped, and when a page is accessed or modified. Here an example to list Ciwiki logs:
    .RS
    .ft 3
    .nf
    .sp
    $ grep Ciwiki /var/log/syslog
    .ft
    .LP
    .RE
    .fi
    
    In order to launch \fBciwiki\fR on a specific IP and port:
    .RS
    .ft 3
    .nf
    .sp 
    $ ciwiki \-l 127.0.0.1 \-p 8080
    .ft
    .LP
    .RE
    .fi
    
    .SH AUTHOR
    .B ciwiki
    Jean-Pierre Redonnet  ,
    ciwiki is a fork of didiwiki (written by Matthew Allum)
    ./ciwiki-3.0.4/docs/Makefile000664 001750 001750 00000034122 14274674205 020123 0ustar00jpredonnetjpredonnet000000 000000 # Makefile.in generated by automake 1.16.1 from Makefile.am.
    # docs/Makefile.  Generated from Makefile.in by configure.
    
    # Copyright (C) 1994-2018 Free Software Foundation, Inc.
    
    # This Makefile.in is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
    
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
    # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    # PARTICULAR PURPOSE.
    
    
    
    am__is_gnu_make = { \
      if test -z '$(MAKELEVEL)'; then \
        false; \
      elif test -n '$(MAKE_HOST)'; then \
        true; \
      elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
        true; \
      else \
        false; \
      fi; \
    }
    am__make_running_with_option = \
      case $${target_option-} in \
          ?) ;; \
          *) echo "am__make_running_with_option: internal error: invalid" \
                  "target option '$${target_option-}' specified" >&2; \
             exit 1;; \
      esac; \
      has_opt=no; \
      sane_makeflags=$$MAKEFLAGS; \
      if $(am__is_gnu_make); then \
        sane_makeflags=$$MFLAGS; \
      else \
        case $$MAKEFLAGS in \
          *\\[\ \	]*) \
            bs=\\; \
            sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
              | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
        esac; \
      fi; \
      skip_next=no; \
      strip_trailopt () \
      { \
        flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
      }; \
      for flg in $$sane_makeflags; do \
        test $$skip_next = yes && { skip_next=no; continue; }; \
        case $$flg in \
          *=*|--*) continue;; \
            -*I) strip_trailopt 'I'; skip_next=yes;; \
          -*I?*) strip_trailopt 'I';; \
            -*O) strip_trailopt 'O'; skip_next=yes;; \
          -*O?*) strip_trailopt 'O';; \
            -*l) strip_trailopt 'l'; skip_next=yes;; \
          -*l?*) strip_trailopt 'l';; \
          -[dEDm]) skip_next=yes;; \
          -[JT]) skip_next=yes;; \
        esac; \
        case $$flg in \
          *$$target_option*) has_opt=yes; break;; \
        esac; \
      done; \
      test $$has_opt = yes
    am__make_dryrun = (target_option=n; $(am__make_running_with_option))
    am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
    pkgdatadir = $(datadir)/ciwiki
    pkgincludedir = $(includedir)/ciwiki
    pkglibdir = $(libdir)/ciwiki
    pkglibexecdir = $(libexecdir)/ciwiki
    am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
    install_sh_DATA = $(install_sh) -c -m 644
    install_sh_PROGRAM = $(install_sh) -c
    install_sh_SCRIPT = $(install_sh) -c
    INSTALL_HEADER = $(INSTALL_DATA)
    transform = $(program_transform_name)
    NORMAL_INSTALL = :
    PRE_INSTALL = :
    POST_INSTALL = :
    NORMAL_UNINSTALL = :
    PRE_UNINSTALL = :
    POST_UNINSTALL = :
    subdir = docs
    ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    am__aclocal_m4_deps = $(top_srcdir)/configure.ac
    am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
    	$(ACLOCAL_M4)
    DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
    mkinstalldirs = $(install_sh) -d
    CONFIG_HEADER = $(top_builddir)/config.h
    CONFIG_CLEAN_FILES =
    CONFIG_CLEAN_VPATH_FILES =
    AM_V_P = $(am__v_P_$(V))
    am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
    am__v_P_0 = false
    am__v_P_1 = :
    AM_V_GEN = $(am__v_GEN_$(V))
    am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
    am__v_GEN_0 = @echo "  GEN     " $@;
    am__v_GEN_1 = 
    AM_V_at = $(am__v_at_$(V))
    am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
    am__v_at_0 = @
    am__v_at_1 = 
    SOURCES =
    DIST_SOURCES =
    am__can_run_installinfo = \
      case $$AM_UPDATE_INFO_DIR in \
        n|no|NO) false;; \
        *) (install-info --version) >/dev/null 2>&1;; \
      esac
    am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
    am__vpath_adj = case $$p in \
        $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
        *) f=$$p;; \
      esac;
    am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
    am__install_max = 40
    am__nobase_strip_setup = \
      srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
    am__nobase_strip = \
      for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
    am__nobase_list = $(am__nobase_strip_setup); \
      for p in $$list; do echo "$$p $$p"; done | \
      sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
      $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
        if (++n[$$2] == $(am__install_max)) \
          { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
        END { for (dir in files) print dir, files[dir] }'
    am__base_list = \
      sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
      sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
    am__uninstall_files_from_dir = { \
      test -z "$$files" \
        || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
        || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
             $(am__cd) "$$dir" && rm -f $$files; }; \
      }
    man1dir = $(mandir)/man1
    am__installdirs = "$(DESTDIR)$(man1dir)"
    NROFF = nroff
    MANS = $(man1_MANS)
    am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
    am__DIST_COMMON = $(srcdir)/Makefile.in README
    DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
    ACLOCAL = ${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing aclocal-1.16
    ALLOCA = 
    AMTAR = $${TAR-tar}
    AM_DEFAULT_VERBOSITY = 1
    AUTOCONF = ${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing autoconf
    AUTOHEADER = ${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing autoheader
    AUTOMAKE = ${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing automake-1.16
    AWK = mawk
    CC = gcc
    CCDEPMODE = depmode=gcc3
    CFLAGS = -g -O2
    CPP = gcc -E
    CPPFLAGS = 
    CYGPATH_W = echo
    DEFS = -DHAVE_CONFIG_H
    DEPDIR = .deps
    ECHO_C = 
    ECHO_N = -n
    ECHO_T = 
    EGREP = /bin/grep -E
    EXEEXT = 
    GCC_FLAGS = -g -Wall -fno-strict-aliasing
    GREP = /bin/grep
    INSTALL = /usr/bin/install -c
    INSTALL_DATA = ${INSTALL} -m 644
    INSTALL_PROGRAM = ${INSTALL}
    INSTALL_SCRIPT = ${INSTALL}
    INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
    LDFLAGS = 
    LIBOBJS = 
    LIBS = 
    LTLIBOBJS = 
    MAKEINFO = ${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/missing makeinfo
    MKDIR_P = /bin/mkdir -p
    OBJEXT = o
    PACKAGE = ciwiki
    PACKAGE_BUGREPORT = inphilly@gmail.com
    PACKAGE_NAME = ciwiki
    PACKAGE_STRING = ciwiki 3.0.4
    PACKAGE_TARNAME = ciwiki
    PACKAGE_URL = 
    PACKAGE_VERSION = 3.0.4
    PATH_SEPARATOR = :
    SET_MAKE = 
    SHELL = /bin/bash
    STRIP = 
    VERSION = 3.0.4
    abs_builddir = /home/jpredonnet/ciwiki/ciwiki-3.0.4/docs
    abs_srcdir = /home/jpredonnet/ciwiki/ciwiki-3.0.4/docs
    abs_top_builddir = /home/jpredonnet/ciwiki/ciwiki-3.0.4
    abs_top_srcdir = /home/jpredonnet/ciwiki/ciwiki-3.0.4
    ac_ct_CC = gcc
    am__include = include
    am__leading_dot = .
    am__quote = 
    am__tar = $${TAR-tar} chof - "$$tardir"
    am__untar = $${TAR-tar} xf -
    bindir = ${exec_prefix}/bin
    build_alias = 
    builddir = .
    datadir = ${datarootdir}
    datarootdir = ${prefix}/share
    docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
    dvidir = ${docdir}
    exec_prefix = ${prefix}
    host_alias = 
    htmldir = ${docdir}
    includedir = ${prefix}/include
    infodir = ${datarootdir}/info
    install_sh = ${SHELL} /home/jpredonnet/ciwiki/ciwiki-3.0.4/install-sh
    libdir = ${exec_prefix}/lib
    libexecdir = ${exec_prefix}/libexec
    localedir = ${datarootdir}/locale
    localstatedir = ${prefix}/var
    mandir = ${datarootdir}/man
    mkdir_p = $(MKDIR_P)
    oldincludedir = /usr/include
    pdfdir = ${docdir}
    prefix = /usr/local
    program_transform_name = s,x,x,
    psdir = ${docdir}
    runstatedir = ${localstatedir}/run
    sbindir = ${exec_prefix}/sbin
    sharedstatedir = ${prefix}/com
    srcdir = .
    sysconfdir = ${prefix}/etc
    target_alias = 
    top_build_prefix = ../
    top_builddir = ..
    top_srcdir = ..
    man1_MANS = ciwiki.man
    all: all-am
    
    .SUFFIXES:
    $(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
    	@for dep in $?; do \
    	  case '$(am__configure_deps)' in \
    	    *$$dep*) \
    	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    	        && { if test -f $@; then exit 0; else break; fi; }; \
    	      exit 1;; \
    	  esac; \
    	done; \
    	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/Makefile'; \
    	$(am__cd) $(top_srcdir) && \
    	  $(AUTOMAKE) --gnu docs/Makefile
    Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
    	@case '$?' in \
    	  *config.status*) \
    	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
    	  *) \
    	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
    	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
    	esac;
    
    $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
    	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    
    $(top_srcdir)/configure:  $(am__configure_deps)
    	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    $(ACLOCAL_M4):  $(am__aclocal_m4_deps)
    	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    $(am__aclocal_m4_deps):
    install-man1: $(man1_MANS)
    	@$(NORMAL_INSTALL)
    	@list1='$(man1_MANS)'; \
    	list2=''; \
    	test -n "$(man1dir)" \
    	  && test -n "`echo $$list1$$list2`" \
    	  || exit 0; \
    	echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
    	$(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
    	{ for i in $$list1; do echo "$$i"; done;  \
    	if test -n "$$list2"; then \
    	  for i in $$list2; do echo "$$i"; done \
    	    | sed -n '/\.1[a-z]*$$/p'; \
    	fi; \
    	} | while read p; do \
    	  if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
    	  echo "$$d$$p"; echo "$$p"; \
    	done | \
    	sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
    	      -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
    	sed 'N;N;s,\n, ,g' | { \
    	list=; while read file base inst; do \
    	  if test "$$base" = "$$inst"; then list="$$list $$file"; else \
    	    echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
    	    $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
    	  fi; \
    	done; \
    	for i in $$list; do echo "$$i"; done | $(am__base_list) | \
    	while read files; do \
    	  test -z "$$files" || { \
    	    echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
    	    $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
    	done; }
    
    uninstall-man1:
    	@$(NORMAL_UNINSTALL)
    	@list='$(man1_MANS)'; test -n "$(man1dir)" || exit 0; \
    	files=`{ for i in $$list; do echo "$$i"; done; \
    	} | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
    	      -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
    	dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
    tags TAGS:
    
    ctags CTAGS:
    
    cscope cscopelist:
    
    
    distdir: $(BUILT_SOURCES)
    	$(MAKE) $(AM_MAKEFLAGS) distdir-am
    
    distdir-am: $(DISTFILES)
    	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
    	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
    	list='$(DISTFILES)'; \
    	  dist_files=`for file in $$list; do echo $$file; done | \
    	  sed -e "s|^$$srcdirstrip/||;t" \
    	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
    	case $$dist_files in \
    	  */*) $(MKDIR_P) `echo "$$dist_files" | \
    			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
    			   sort -u` ;; \
    	esac; \
    	for file in $$dist_files; do \
    	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
    	  if test -d $$d/$$file; then \
    	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
    	    if test -d "$(distdir)/$$file"; then \
    	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
    	    fi; \
    	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
    	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
    	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
    	    fi; \
    	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
    	  else \
    	    test -f "$(distdir)/$$file" \
    	    || cp -p $$d/$$file "$(distdir)/$$file" \
    	    || exit 1; \
    	  fi; \
    	done
    check-am: all-am
    check: check-am
    all-am: Makefile $(MANS)
    installdirs:
    	for dir in "$(DESTDIR)$(man1dir)"; do \
    	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
    	done
    install: install-am
    install-exec: install-exec-am
    install-data: install-data-am
    uninstall: uninstall-am
    
    install-am: all-am
    	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
    
    installcheck: installcheck-am
    install-strip:
    	if test -z '$(STRIP)'; then \
    	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
    	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
    	      install; \
    	else \
    	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
    	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
    	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
    	fi
    mostlyclean-generic:
    
    clean-generic:
    
    distclean-generic:
    	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
    	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
    
    maintainer-clean-generic:
    	@echo "This command is intended for maintainers to use"
    	@echo "it deletes files that may require special tools to rebuild."
    clean: clean-am
    
    clean-am: clean-generic mostlyclean-am
    
    distclean: distclean-am
    	-rm -f Makefile
    distclean-am: clean-am distclean-generic
    
    dvi: dvi-am
    
    dvi-am:
    
    html: html-am
    
    html-am:
    
    info: info-am
    
    info-am:
    
    install-data-am: install-man
    
    install-dvi: install-dvi-am
    
    install-dvi-am:
    
    install-exec-am:
    
    install-html: install-html-am
    
    install-html-am:
    
    install-info: install-info-am
    
    install-info-am:
    
    install-man: install-man1
    
    install-pdf: install-pdf-am
    
    install-pdf-am:
    
    install-ps: install-ps-am
    
    install-ps-am:
    
    installcheck-am:
    
    maintainer-clean: maintainer-clean-am
    	-rm -f Makefile
    maintainer-clean-am: distclean-am maintainer-clean-generic
    
    mostlyclean: mostlyclean-am
    
    mostlyclean-am: mostlyclean-generic
    
    pdf: pdf-am
    
    pdf-am:
    
    ps: ps-am
    
    ps-am:
    
    uninstall-am: uninstall-man
    
    uninstall-man: uninstall-man1
    
    .MAKE: install-am install-strip
    
    .PHONY: all all-am check check-am clean clean-generic cscopelist-am \
    	ctags-am distclean distclean-generic distdir dvi dvi-am html \
    	html-am info info-am install install-am install-data \
    	install-data-am install-dvi install-dvi-am install-exec \
    	install-exec-am install-html install-html-am install-info \
    	install-info-am install-man install-man1 install-pdf \
    	install-pdf-am install-ps install-ps-am install-strip \
    	installcheck installcheck-am installdirs maintainer-clean \
    	maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
    	pdf-am ps ps-am tags-am uninstall uninstall-am uninstall-man \
    	uninstall-man1
    
    .PRECIOUS: Makefile
    
    
    # Tell versions [3.59,3.63) of GNU make to not export all variables.
    # Otherwise a system limit (for SysV at least) may be exceeded.
    .NOEXPORT:
    ./ciwiki-3.0.4/docs/FAQ_HELP000777 001750 001750 00000010212 14264641153 017617 0ustar00jpredonnetjpredonnet000000 000000 Q: I got the message 'You need an access code. You should receive it by email.' 
    but I didn't receive any email.
    -------------------------------------------------------------------------------
    A: CiWiki sends the access code automatically after a new user registration.
    It runs the script notifynewuser.sh in the background. This script should be 
    present in the folder /usr/local/libexec. (The script is present in the package 
    and automatically installed with the command sudo make install).
    notifynewuser.sh requires the program sSMPT, ssmtp.conf and revaliases
    must be correctly configured.
    -------------------------------------------------------------------------------
    -------------------------------------------------------------------------------
    Q: I installed notifynewuser.sh and I still do not receive the access code.
    -------------------------------------------------------------------------------
    A: Did you install sSMTP? (Debian: sudo apt-get install ssmtp) Did you configure 
    ssmtp.conf and revaliases?  Did you start ciwiki with the option -s ( ciwiki -s ).
    -------------------------------------------------------------------------------
    -------------------------------------------------------------------------------
    Q: The registration doesn't word and I received this msg: sendmail: Server 
    didn't like our AUTH LOGIN (530 5.7.0 Must issue a STARTTLS command first.) 
    -------------------------------------------------------------------------------
    A: Check ssmtp.conf, you need this line: UseSTARTTLS=YES
    -------------------------------------------------------------------------------
    -------------------------------------------------------------------------------
    Q: The registration page returns this message: sendmail: Cannot open mailhub:25
    -------------------------------------------------------------------------------
    A: Did you enter you mailhub?
    
    Example of ssmtp.conf:
    
    root=
    mailhub=smtp.gmail.com:587
    hostname=inphilly@gmail.com
    AuthUser=inphilly@gmail.com
    AuthPass=************** (password is in clear)
    UseSTARTTLS=YES
    FromLineOverride=NO
    -------------------------------------------------------------------------------
    -------------------------------------------------------------------------------
    Q: I get this message: sendmail: Authorization failed 
    -------------------------------------------------------------------------------
    A: Check your password in ssmtp.conf, AuthPass=xxxxxxxxxxx
    -------------------------------------------------------------------------------
    -------------------------------------------------------------------------------
    Q: How can I change the style of the pages displayed ? 
    -------------------------------------------------------------------------------
    A: The file styles.css is located in /.ciwiki/configuration folder. You can edit this file 
    to change the link color, backgroung color, charset...
    -------------------------------------------------------------------------------
    -------------------------------------------------------------------------------
    Q: Other computers can't connect!
    -------------------------------------------------------------------------------
    A: Check your inet address (run the script inet_addr.sh located in the folder
     /scripts of the package).
    -------------------------------------------------------------------------------
    -------------------------------------------------------------------------------
    Q: Can I avoid to logon?
    -------------------------------------------------------------------------------
    A: Only on the host, when ciwiki is started with the option -a ( ciwiki -a )
    -------------------------------------------------------------------------------
    -------------------------------------------------------------------------------
    Q: My login name is (null) in the Login information page and I can't change my 
    password.
    -------------------------------------------------------------------------------
    A: Because ciwiki was started with the option -a ( ciwiki -a ), the computer host 
    is automatically logged, so no user name and password were entered.
    -------------------------------------------------------------------------------
    ----------------------------------- --------------------------------------------
    
    ./ciwiki-3.0.4/docs/MAILINGCODE000777 001750 001750 00000001475 12462236156 020127 0ustar00jpredonnetjpredonnet000000 000000 AUTOMATIC MAILING OF THE ACCESS CODE
    
    January 28, 2015:
    -----------------
    
    If the registration mail is not sent:
    - Check is ssmtp is installed. (whereis ssmtp)
    - ssmtp.conf is correctly configured? (sudo gedit /etc/ssmtp/ssmtp.conf for example)
    - revaliases is correctly configured? (sudo gedit /etc/ssmtp/revaliases for example)
    - Check log files: cat /var/log/mail.err  cat /var/log/mail.log cat /var/log/mail.warn  cat /var/log/mail.info
    
    ssmtp configuration , example of configuration for gmail:
    ---------------------------------------------------------
    1 -  /etc/ssmtp/ssmtp.conf 
    
    mailhub=smtp.gmail.com:587
    UseSTARTTLS=YES
    FromLineOverride=YES
    AuthUser=yourlogin@gmail.com
    AuthPass=yourpassword
    
    2 - /etc/ssmtp/revaliases
    
    root:yourlogin@gmail.com:smtp.gmail.com:587
    localusername:yourlogin@gmail.com:smtp.gmail.com:587
    
    
    ./ciwiki-3.0.4/docs/index.html000777 001750 001750 00000003167 12234406211 020452 0ustar00jpredonnetjpredonnet000000 000000 
    
    
    
       
      
      
      
      
      
      
      CiWiki alias DidiWiki Home Page
    
    
    

    About.

    CiWiki is a fork of DidiWiki [1]. There are many new features but CiWiki stays a simple and fast wiki with low resources requirement.

    Features include:

    • A built in webserver.
    • A support for tables, lists, quote, images, video, login, page permission, expand and collapse, table of contents, entries, text color, background color, diff...
    • Web standards compliant generated markup.
    The main advantages:
    • Easy to install.
    • No database and no scripting languages are required.
    • A tiny binary size and a low memory requirement (less than 1MB).

    Download CiWiKi

    Jean-Pierre Redonnet - June 2010

    [1] Matthew Allum is the original autor of DidiWiki.

    ./ciwiki-3.0.4/docs/PERMISSION_FILES000777 001750 001750 00000002100 12462214522 021001 0ustar00jpredonnetjpredonnet000000 000000 Permission files are located in the folder /.ciwiki/permission The file '.login.txt' contains the registered users: NAME ENCRYPTED PASSWORD INET Adr DATE FLAGS newroanne 000b53add24d1e41 127.0.0.1 21248396 1 1 The file '.session.txt' contains the users curently logged: -----INET ADR AUTHORIZED--------:---LOGIN DATE---:--------USER NAME------- 127.0.0.1: 21365194: inphilly '.login.txt' and '.session.txt' are automatically created and they should not be manually modified or deleted. '.session.txt' is automatically deleted when the program CiWiki is closed and it's created when the first user login. The file '.alwayswanted.txt' contains a list of inet address that are automatically logged on without user intervention. Write one address per line terminated with a EOL (key Enter): 192.168.1.64 192.168.1.65 The file '.unwanted.txt' contains a list of inet address to reject. Users with these address will not able to login. Write one address per line terminated with a EOL (key Enter): 192.168.1.10 192.168.1.15 ./ciwiki-3.0.4/docs/HOWTOLOGIN000777 001750 001750 00000006247 14305574371 020111 0ustar00jpredonnetjpredonnet000000 000000 Updated on september 6, 2022 1°) To send automatically a validation code to a new user - You need sSMTP to send emails (please read MAILINGCODE) - Run ciwiki with the option -s ( ciwiki -s ) 2°) To send manually a validation code to a new user - New user demand are stored in the file ~/newwikiusers.txt Record fields are: U:Username P:Password M:user@mail.com I:ip address T:time C:validation code The validation code is generated from the username and the email address. So the new user has the possibility to create his accound with another password the condition is that he doesn't change his username, his email address and the validation code. As soon as the account is created, the passwords is crypted and stored in ./ciwiki/permission/.login.txt The webmaster have to check if a new user was recorded in the file ~/newwikiusers.txt, and to eturn by email to the new user his username, email address, validation code and eventually his password. Finaly, the webmaster can delete the record in ~/newwikiusers.txt. 3°) Login - After 3 wrong login attempts (wrong password) the login procedure is locked for 4 minutes. Number of allowed attempts and lockdown duration can be changed (ciwiki options -L and -D). - The login requires the username and the password, both between 8 and 24 characters. Space are not allowed, any other chars are possible. The other fields (email,code) are only used to open an account. - A new user will have to enter its username, password and email address. These info are stored in ~/newwikiusers.txt , for example: U:Gladiator P:Extrem125 M:inphilly@gmail.com I:127.0.0.1 T:21151948 C:43b002e6240 The user "Gladiator" will have to be contacted by email "yourlogin@gmail.com" with these infos: username "Gladiator" password "Extrem125" and access code "43b002e6240" - The host computer (127.0.0.1) is automatically logged with the option -a ( ciWiki -a ) - It's possible to have a list of unwanted ip address. Go in the folder ./ciwiki/permission and create a file .unwanted.txt (don't forget the dot to hide the file else that will not work) and write one line for each forbidden ip. - passwords are crypted and stored in ./ciwiki/permission/.login.txt 4°) Login to access to ciwiki To secure the access to ciwiki, run ciwiki with the option --secure or --secure=key=access_code. The first page of ciwiki will be a login page and the user will not have the possibility to get any other page if he is not logged in. If the option is --secure=key=access_code, the user will have to enter his username, password and the access_code. Limitation: Because new user cannot access to ciwiki without password, the webmaster will have to provide an username and a password to new user. The solution is to run two instances of ciwiki. One instance is not --secure and contains only the welcome page inviting to create an account. The other instance is --secure and contains all the wikipages. LOGIN FEATURES: *************** - Pages cannot be edited or deleted if the user is not logged. - Page or part of the page can be hidden with the tag {{ private }} Note: If after 30mn a page has not been opened then the ip is canceled, and the user will have to login again. ./ciwiki-3.0.4/docs/favicon.ico000664 001750 001750 00000001117 12662063706 020577 0ustar00jpredonnetjpredonnet000000 000000 GIF89a"! d! NETSCAPE2.0,(""3B!BRFEQEQPCPEQEQP AQB!P( Aa( 0( A0 0( APA  AP(  @! d,"(""DB!BREQ EQPPEQEQPCQBaP( A0( a@( A@ a@( AP `0  AP( @;./ciwiki-3.0.4/docs/ciwiki.png000777 001750 001750 00000013122 11410310372 020427 0ustar00jpredonnetjpredonnet000000 000000 PNG  IHDREפbKGDC pHYsHHFk>IDATxiǧdI%&";#J`7pȋ9 Q ; (b0hDDD"b*snߛ鮚Ꞿ/zfo޺1RۡZaalеRCiOjU)!>ܵCJnumE塔ݺ_OҎ_;-$J3iۛ1ZiOt\ȁxeM瞃._7\o}eѵk 8K6Y;>Y^#֍}EП ڷo2+Ѕ 55p,6n arp`U"Rj}Զ6mpvf?vǎfڳڢKbhLJ4AsgC hFіot\裏B_xн{҂kRj}!hm =lM7A⭃zO.Z}5=Y9!t*( f~(=З/[GA^P\{{.ݯhyYVr <ZS`5ʬ]c78(%gaCJ{RAU#F`oz+BGi䈮] xs󱞝;]ok@HhO ҥw?̙[n|E7"=F7a:hM%@4/c]nʗ_B?..4Ai 'DJ b%KuǠ睇SE)!xؼzXޚPIԺiSV9 p((%aى'Be죔ԃvADTxz8rE}7ݻÆw ʎCa@H5 (9qĈC1^prΝ=Y7Rgv{cyY; ҚSS :z ÔJ}KJgR!C&ǡH]@oQX;r  Dr!LӢgOo$J wk ,Q_#ukKEBJ ͛2$yCJ AvpmMeC{,?n(ÖAup\}]9ۃW^_Â!])b^'OƁ&AC@&O?>k˘,ѿ?# 4%+Š!\w[G?y¤[q#}cyq;Ձ8 `(()4"L´aRCѾh˸fPaҀ\=k[vRTǂ_\[d)/q1Xb8٬Yіm\&-(%X_v7 ɞ*RR)`(q?3ǵi%!͚=>*; Ŝ*'c[8=J hobǾ2~C bPYZ{,\=ڵi'bČШiٮwfl9UU%[Q4LRm* Ơ:&K~;40s&ٗ^rma)RBKv<r IyZBB3In9tFJC;R_ʵBw{1Z91q\m2u ֬vKj(#XC]Ժa~ndq~kk+"{ n0&ʈTKgi7umJ TW^bLQ!TBXr%n0&*hANcIZCӐSQ)LvRG[,cp;uE[vlCtLj.D6b[nŋ9t緿J5 ?J9jٚ0 (%DNдΚF=ZTi:7mB{N;1@`l!֧egtVV:!=ÇCX> Ӣ26Ib.DʩB۶0m]0R О>w~K8abHپg7ccE]-V(u.DXb>v1ɘ1`J0+x)me [%Nkv7 NjLgT?7.Huh'ih~Q-/ySNZznM4NRD .l0ن% gdp LA1L9HzA .yCYԺO/?&(uٰLPJO>AVfܞg$`u!;}qcJq#4lS.I'] OŸ 3v=3Xek&;HuVhzkPeIh|z۳QH5Ub s8o,@LdvgQ[@)N\zca¾\.~%8t6w=Psbښ[s{ :ʮᖭ[ 7tm股t9bK%ɞ^sgr;ۑtz]@J Bd7tc|;m58[V$3VYG:^Ŏf rrueB%SLi|V0oFe v +?߲ŵe!tO.d2UWA?9̙w >؞쉻'ʍf);z):Diju)n%’)0PÆ7 upSJ]@QkpY܎i!ו ~(]Ga\qSNqmq17o)?J ?X{XVPFv:H\vmf=tu)$ܟPOČ<5`l7-tP[*&5 [C0Jeڛ6~]7,Y'SL4̝J؂C$ɀ_}5Q&MѷooFRjݸ1Bi8iBsr.E!~]˕WBʤIaLi;_[o5d@'NcJ AoTJ4; '~45]:uU 'Y]oSޢtb|;۷5B$%"x!ם:፭]+rI͡uU%K%|55:+w (;Ÿb_u8Tq@xЗ_F ]خuRQ+Lw|1wC 5nDLRk]v 5o;uR!ꊯF>}_6;4(pv`b<;C] ݻCǎv-Mv׼A t@CJÒ()=pZ?8>:̲5d5ސ!h*q-4u@x(%K.]jfI+PIz-+d^|jl!Ghή-LBmMc_.}Cn ]tRB<<3gYMzk˃5@iO>jڶ!A)!Iz ׇmk?R룏F j\f ꉨQ|] t9x0ӠA8Kb$| t!ٺa$ 6=߻w᤮Bx hX.ET KQ.*˸E)!E{9i<RBlތR cWhɣJ^hr)ͅRkJ: ]0G)!hcYծR Ib~2L86CRjݡ׭\,.Pij*lcqwzK+b,qߔ㠙$A3\ʅ(5tv]8.r~IhCxjK7 co6lpEP*_ݔNץ)F Ѕ99.hzm,^|-Kԛ cӡJ"Gb:V⬳sqRBsf(2'KRB:ӦY]I} q+:F͙cgTe$[vFou@0I楗kv;wBHl98+VmzP 7@MѣAR)D\{ms Xǎ7axC C?\z袐}CAnCLPJC{x;h:c'GZJ A]J?mutFp PɨLDPG0&֮^W\zKFLhRߎ0L0@>t͚d`玞;+݆ZGkƷSb᜗]z0ص IeB,/и8tظﶳr֦=J h-5{5;aJ7}ӡ\L r</6o׿RNiFs_3a!(%ɔ:~ z5w|Vh r%ۏ?kØ;Gp$(ْ b0A)!+&@{0PB5/`+VKDup8tXm[=i0,$1*%ŨhuB55<* *6B(n]`*ښ=vD<ڶuI(ӟJYat;FiHBo4鉽xӋ].NI;J hOhg͚A&2<G*~-]Zohv@HcZz(Ҭ]u ,^_iͅS>0.}&2+%;@ g¿ڵ8p4k`)6 mO][D;|wQEE͢Encxs^Dʯu1mZz_l0D qPiks#: 8pJAusgZ7im =Jp#ΤPMbEmRJʁBvsJ 3hϚeg]@oֺkɪ@:ӰP*1ھ=tZRueg}.zisυsiSo7lN)OV>c e\~eI Nġ &-[]xN̙[\nR0yw.>~#V^_@QҽI=4E (Ulܸrׯ.X?'Ɏ su^sd)nm]Ƌ_x+C{*(Z>rg_ҩJJKы-^}*%foHzMCϑRf}8_S@=B J9sѼ_5R.`Iɣ|E_:.vۊ핂RBdq:)n-[ ܸ]YtgWZ*)z?xhy뭋}8y>+=6IENDB`./ciwiki-3.0.4/docs/CIWIKI_ON_USBDRIVE000777 001750 001750 00000001325 12462226724 021264 0ustar00jpredonnetjpredonnet000000 000000 CiWiki is very compact and doesn't require Mysql, php, Apache... It is ideal if you wish running a small wiki on a usb flash drive. To run CiWiki from your usb drive, a few MBytes of free space are required. 1 - Copy the folder ciwiki-2.x.x on your flash drive. 2 - Compile the code ./configure and make 3 - Start CiWiki with this command: /media/disk/ciwiki-2.x.x/src/ciwiki -h "/media/disk/mywikispace/" Another possibility: if you just want to store the wikipage on the flash drive, install ciwiki normaly and start CiWiki with this command: ciwiki -h "/media/disk/mywikispace/" Note: The page will be stored in the folder /mywikispace of your flash drive. /media/disk is the path of a usb flash drive for Ubuntu. ./ciwiki-3.0.4/docs/ENCRYPTION000664 001750 001750 00000004177 14305561047 020101 0ustar00jpredonnetjpredonnet000000 000000 1°) To create encrypted page : - Select New -> Encrypt text yes It's not possible to select on same time Encrypt and Template because encrypt function works only on unformated text. If you select Encrypt + Template then only encrypt mode will be selected. - Enter your text inside the first text box. - Enter the encryption key and click on Encrypt. => then the encrypted text appears inside the second text box. !!! Don't delete or change any character of the encrypted text else it will be inpossible to decrypt! - Click on save to send the encrypted text to the server, it will be saved with the other wiki pages. (If you want that text stays editable, doesn't check the checkbox "Lock".) Note: ----- Encryption algorithm is based on a symmetric encryption algorithm, so the same key is used to encrypt and decrytp the text. Your key is hashed to return a key of 24 chars hexadecimals. This hexadecimal key is used to encrypt your text. This key gives 16^24 combinations (about 8x10^28). To increase the security of your encrypted text: - Don't use your login password as an encryption key. - Choose the longest encryption key. 2°) To decrypt an encrypted page : - You need to login. - Select the encrypted page with the command find. - Entrer the key et click on Decrypt. 3°) To delete an encrypted page : - There is no button to delete an uncrypted page but it's possible to delete it with this commande: your_inet_address/page_name_to_delete?delete 4°) To modify an encrypted page : - If the checkbox "Lock" was not checked when the encrypted text was created then the encrypted page can be edited, encrypted and saved again. To do this, start to decrypt the page, modify the decrypted text and finaly click on save. The modified text will be encrypted and saved. - If the checkbox "Lock" was checked when the encrypted text was created then it's not possible to modify an encrypted page anymore. Anyway there is a work around. The solution is to decrypt the page, to copy the text, to create a new encrypted page and finaly to past the text. So you will have two files, the original encrypted file and the new one. ./ciwiki-3.0.4/docs/FLASH_PLAYER000777 001750 001750 00000002627 11373506304 020320 0ustar00jpredonnetjpredonnet000000 000000 To embed an animation or a video flash you need the address and the name of the swf file. These examples will play games from www.neave.com and video from youtube.com 1 - We have the exact address and name: youtube=http://www.neave.com/games/asteroids/asteroids.swf 2 - The php script in the server provides the address and name: youtube=http://www.neave.com/games/get_game.php?swf=frogger 3 - Youtube: When the html code is provided, here the example of youtube: We have to look for the video ID in the tag &2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) is_target_a_directory=always dst_arg=$2 # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) is_target_a_directory=never;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done # We allow the use of options -d and -T together, by making -d # take the precedence; this is for compatibility with GNU install. if test -n "$dir_arg"; then if test -n "$dst_arg"; then echo "$0: target directory not allowed when installing a directory." >&2 exit 1 fi fi if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call 'install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then if test $# -gt 1 || test "$is_target_a_directory" = always; then if test ! -d "$dst_arg"; then echo "$0: $dst_arg: Is not a directory." >&2 exit 1 fi fi fi if test -z "$dir_arg"; then do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for 'test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename. if test -d "$dst"; then if test "$is_target_a_directory" = never; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dstbase=`basename "$src"` case $dst in */) dst=$dst$dstbase;; *) dst=$dst/$dstbase;; esac dstdir_status=0 else dstdir=`dirname "$dst"` test -d "$dstdir" dstdir_status=$? fi fi case $dstdir in */) dstdirslash=$dstdir;; *) dstdirslash=$dstdir/;; esac obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) # Note that $RANDOM variable is not portable (e.g. dash); Use it # here however when possible just to lower collision chance. tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0 # Because "mkdir -p" follows existing symlinks and we likely work # directly in world-writeable /tmp, make sure that the '$tmpdir' # directory is successfully created first before we actually test # 'mkdir -p' feature. if (umask $mkdir_umask && $mkdirprog $mkdir_mode "$tmpdir" && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. test_tmpdir="$tmpdir/a" ls_ld_tmpdir=`ls -ld "$test_tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac oIFS=$IFS IFS=/ set -f set fnord $dstdir shift set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=${dstdirslash}_inst.$$_ rmtmp=${dstdirslash}_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: ./ciwiki-3.0.4/AUTHORS000777 001750 001750 00000002506 12232671342 016600 0ustar00jpredonnetjpredonnet000000 000000 CiWiki alias DidiWiki --------------------- Fork of DidiWiki 0.8 Jean-Pierre Redonnet new features: text color and background color image size and border embedded videos previous page saved login and page permission quote expand/collapse table of contents diff with previous page DidiWiki -------- Primary developer: Matthew Allum Contributors: Carsten Graeser - table support. Peter Korsgaard various patches: autogen-fixup, cleanup-svn, fix-rss-changes new features: edit-preview-cancel, delete-page Kanru Chen - page index support Gilbert Ashley Pulled together last upstream sources from svn, adding patches from Peter Korsgaard, Kanru Chen and from debian-0.5-5 patch. Fixed up, refactored and re-diffed the above to all work together. Added later fixes and features patches from debian and then started fixing remaining issues. Debian maintainers and/or patch authors: Ignace Mouzannar Mauro Lizaur Peter Eisentraut Hanna Wallach Carlo Mandelli Alexey Khudyakov Neil Stockbridge